File: textmethod.xsl

package info (click to toggle)
xom 1.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,712 kB
  • sloc: xml: 68,724; java: 48,828; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?> 
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
				
  <!-- test a stylesheet that use method="text" -->
  <xsl:output method="text"/>
				
				
  <xsl:template match="/">
    <element1>12345</element1>
    <element2>67890</element2>
    <element3/>
	<element4>0987654321</element4>
	<xsl:comment>test</xsl:comment>
	<xsl:processing-instruction name="test">PIs are not treated as literals in XSLT?</xsl:processing-instruction>
  </xsl:template>

</xsl:stylesheet>