Subject: Re: [xsl] Formatting issues From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 22 Dec 2006 23:12:44 +0100 |
Level1 - 1,2,3 etc
Level2 - A, B, C
Level3 - i,ii,..
Level4 - (1), (2)
Level5 - (a), (b)
Level6 - (i), (ii)
The hierarchy for levels is that level 1 is the parent for level2, level2 is he parent for level3 and so on. i.e.
[...]
Now in an XML , there can be any number of these
levels, and I have a logic to filter these levels
based on certain conditions.
I tried <xsl:number from="level1" format="1"/>
But that only numbers all levels with 1 and does not
increment them sequentially.
This is my problem. How do I write the XSLT to basically check if previous levels have satisfied the filtering condition
and if they have, include them for
counting, else remove them and count only those levels
that satisfy the condition and count sequentially.
Which is what it does, too ;) Your conditions will likely be different, though.
Cheers, -- Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Formatting issues, ms | Thread | Re: [xsl] Formatting issues, ms |
Re: [xsl] Formatting issues, ms | Date | Re: [xsl] Meunch away on this, Andrew Welch |
Month |