ZVON > References > XSLT Reference
Example 64:3: All | XML | >> XSLT << | Output |

XSLT


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

          <xsl:template match = "*" >
               <xsl:element name = "{name()}" >
                    <xsl:attribute name = "myID" >
                         <xsl:value-of select = "generate-id()" />
                    </xsl:attribute>
                    <xsl:apply-templates />
               </xsl:element>
          </xsl:template>
     </xsl:stylesheet>