Subject: Re: [xsl] html toc From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Wed, 23 Feb 2005 19:18:12 +0100 |
my problem is that all the headline elements are part of the same axis and i don't know how do the transformation without something like a 'break loop', or 'select all following 'h3' until the next 'h2' or 'h1'.
<xsl:template match="*[h1]"> <ul> <xsl:apply-templates select="h1"/> </ul> </xsl:template>
<xsl:template match="*[starts-with(local-name(),'h')]"> <li><xsl:value-of select="."/></li> <xsl:if test="key('header',generate-id())"> <ul> <xsl:apply-templates select="key('header',generate-id())"/> </ul> </xsl:if> </xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Gaudiam omnibus traderat W3C, nec vana fides
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] html toc, Michael Kay | Thread | Re: [xsl] html toc, carst |
RE: [xsl] html toc, Michael Kay | Date | [xsl] Navigating XML when loaded us, Adam_Wetch |
Month |