Subject: [xsl] number continuation problem From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx> Date: Thu, 26 Jun 2003 17:05:28 +0100 |
Hi all, This has had me stumped for the last few hours, so Im hoping someone can shed some light on it. Given this xml structure, of <node>'s within ifs and elses: <if> <node>A</node> <node>B</node> <node>C</node> </if> <else> <node>D</node> <node>E</node> <node>F</node> <node>G</node> <node>H</node> </else> <if> <node>I</node> </if> <else> <node>J</node> </else> All <node>'s must be numbered from 1 to x. <else>/<node>'s should be numbered starting with the number of first <node> in the preceding <if>. The first node after an if/else should start based on the last number of either the if or the else (whichever's greatest). So the desired output for the above xml is: 1. A 2. B 3. C 1. D 2. E 3. F 4. G 5. H 6. I 6. J if/else's are allowed to contain other if/else's. quite tricky, I think. Cheers andrew --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] efficiently following thr, Adam Griffin | Thread | Re: [xsl] number continuation probl, David Carlisle |
Re: [xsl] Excluding Matches in Temp, Karl J. Stubsjoen | Date | Re: [xsl] Excluding Matches in Temp, David Carlisle |
Month |