xsl-list
[Top] [All Lists]

RE: Continue seqlist numbering

2004-01-05 10:02:57

I have two seqlist lists in a row in my xml like:
 
<seqlist>
<item>this is item 1</item>
<item>this is item 2</item>
<item>this is item 3</item>
</seqlist>
<seqlist>
<item>this is item 1</item>
<item>this is item 2</item>
<item>this is item 3</item>
</seqlist>

[snip]

The outcome should look like.
 
1. this is item 1
2. this is item 2
3. this is item 3
 
    3.1. this is item 1
    3.2. this is item 2
    3.3. this is item 3
 

Are you sure?  Wouldn't it continue 4,5,6 (or the second <seqlist>
should be a child of the first)?

Anyway, this is another ideal situation for building the structure you
want in a variable first, and then operating on that (which has been in
many other posts today).

cheers
andrew

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



<Prev in Thread] Current Thread [Next in Thread>