[Home] [By Thread] [By Date] [Recent Entries]
Gogo Estragon wrote:
So, what I need is something like: You probably want something like: <xsl:template match="page">
<li>
<xsl:value-of select="@name"/>
</li>
<!-- check for page children -->
<xsl:if test="page">
<li>
<ul>
<xsl:apply-templates select="page"/>
</ul>
</li>
</xsl:if>
</xsl:template>This way your HTML will be valid (your desired output is not). best, -Rob
|

Cart



