File: foo.xsl

package info (click to toggle)
xalan 1.12-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,368 kB
  • sloc: cpp: 145,645; xml: 1,523; ansic: 434; sh: 27; makefile: 17
file content (17 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?> 
<!DOCTYPE xsl:stylesheet [
  <!ENTITY apply-templates SYSTEM "apply-templates.xml">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:variable name="doc" select="document('document.xml')" />
  <xsl:template match="doc">
    <doc>
        <child>&apply-templates;</child>
        <child><xsl:value-of select="$doc" /></child>
    </doc>
  </xsl:template>

</xsl:stylesheet>