Gogo Estragon wrote:
So, what I need is something like:
xxxxxxxxxxxxx
<ul>
<li>home</li>
<ul>
<li>products</li>
<ul>
<li>wig</li>
<ul>
<li>wig tool</li>
</ul>
</ul>
</ul>
<ul>
<li>faq</li>
</ul>
</ul>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--