AW: Nodeset displayed as <ul>-list

Subject: AW: Nodeset displayed as <ul>-list
From: Conny Kreyßel <Conny.Kreyssel@xxxxxxxxxxxxxx>
Date: Tue, 1 Aug 2000 15:02:40 +0200
Ok this will worked fine for the full node-set, but how can i use my
node-set (ancestor::* | ancestor::*/child::*)?

-Conny-

-----Ursprüngliche Nachricht-----
Von: Ben Robb [mailto:Ben@xxxxxxxxxx]
Gesendet: Dienstag, 1. August 2000 12:58
An: 'xsl-list@xxxxxxxxxxxxxxxx'
Betreff: RE: Nodeset displayed as <ul>-list


I'd use the inbuilt power of templates which do your recursion for you...

<xsl:template match="tree">
	<ul><xsl:apply-templates /></ul>
</xsl:template>

<xsl:template match="nav">
	<li><xsl:if test="boolean(@title)">
            <xsl:value-of select="@title"/>
          </xsl:if>
          <xsl:if test="boolean(@group)">
            <b><xsl:value-of select="@group"/></b>
          </xsl:if>
	<xsl:if test="boolean(nav)">	
		<ul><xsl:apply-templates /></ul>
	</xsl:if>
	</li>
</xsl:template>

This should go through the XML from the top and output a collection of
nested lists.

Ben


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread