|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Indented HTML Lists > Multiple Levels
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








