Subject: Re: Indented HTML Lists > Multiple Levels
From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx>
Date: Mon, 31 Oct 2005 10:36:01 +0100
|
Hi Estragon,
The solution below will also ouput <li>tool</li> (id="4") which you
haven't gotten in your desired output, but I thought that might have
been an oversight. Otherwise I do not know what rules you are using
for the output you want.
<xsl:template match="site">
<xsl:apply-templates select="page"/>
</xsl:template>
<xsl:template match="page">
<ul>
<li><xsl:value-of select="@name"/></li>
<xsl:apply-templates select="page"/>
</ul>
</xsl:template>
I hope that this is what you need.
Regards,
Ragulf Pickaxe :-)
|