Forwards-compatible processing of unknown top level elements
[platform/upstream/libxslt.git] / tests / docs / bug-92.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
3
4   <xsl:output method="xml" indent="yes" version="1.0"/>
5
6   <xsl:template match="node()">
7     <xsl:element name="toto">
8       <xsl:attribute name="n">
9         <xsl:value-of select="name()"/>
10       </xsl:attribute>
11       <xsl:apply-templates/>
12     </xsl:element>
13   </xsl:template>
14
15
16   <xsl:template match="text()"/>
17   <xsl:template match="comment()"/>
18   <xsl:template match="processing-instruction()"/>
19 </xsl:stylesheet>