ZVON > References > XSLT Reference
Example 19:5: All | XML | >> XSLT << | Output |

XSLT


     <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
          <xsl:output method = "text" />

          <xsl:template match = "/" >
               <xsl:apply-templates select = "//*" >
                    <xsl:sort select = "name()" />
               </xsl:apply-templates>
          </xsl:template>

          <xsl:template match = "*" >
               <xsl:value-of select = "name()" />
               <xsl:text > </xsl:text>
          </xsl:template>
     </xsl:stylesheet>