/ Published in: XML
Expand |
Embed | Plain Text
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <h1>ROOT</h1> <xsl:apply-templates select="descendant::a"/> </xsl:template> <xsl:template match="level0"> <xsl:value-of select="b"/> <p>Sum: <xsl:value-of select="descendant::l1e" /></p> <xsl:apply-templates select="level1"/> </xsl:template> <xsl:template match="enum"> <option><xsl:value-of select="@match"/> - <xsl:value-of select="@name"/></option> </xsl:template> <xsl:template match="level1"> <p>mult: <xsl:value-of select="l1e * ../b[3]" /></p> </xsl:template> <xsl:template match="a"> <h4><xsl:value-of select="." /></h4> </xsl:template> </xsl:stylesheet>
You need to login to post a comment.
