Subject: Re: [xsl] Dynamic numbering of lists in xslt From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 09 Jan 2007 17:13:26 +0100 |
So, in my xslt, I use:
<xsl:choose> <xsl:when test="section='second section'> <!-- Do not display thi section --> </xsl:when> </xsl:choose>
my output has:
1. first section 3. third section 4. fourth section
This is part of a huge issue that I am facing and so pasting the whole XSLT here might be too cumbersome.
<xsl:template match="section[. != 'second section']"> <!-- do display these sections -->
<xsl:number /> <!-- will only count the matches consecutively --> </xsl:template>
<!-- probably you can leave this one out --> <xsl:template match="scrion[.='second section']" />
Can you give me any idea on how to number sequentially even if the preceding or folowing siblings are filtered?
Cheers, -- Abel Braaksma http://www.nuntia.nl
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamic numbering of list, David Carlisle | Thread | Re: [xsl] Dynamic numbering of list, David Carlisle |
Re: [xsl] Dynamic numbering of list, David Carlisle | Date | Re: [xsl] Dynamic numbering of list, David Carlisle |
Month |