xsl-list
[Top] [All Lists]

Re: Indented HTML Lists > Multiple Levels

2005-10-31 02:36:01
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 :-)

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>