|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Numbering new nodes using consecutive integers
Hi,
At 12:40 PM 3/27/2009, you wrote: I added an additional level <G2> to a hierarchy of <Groups> and <G1>. I want to assign numbers to the newly created <G2> nodes, which identify them in the document. I managed to do so using <xsl:number>. In addition to David's and Ken's suggestions, here's a Gordian knot solution to consider -- is there any reason why this has to be done in a single pass? The numbering would be trivially easy in a second pass. In general, I agree that this isn't really a job for xsl:number, whose primary application is to generate numbers relative to the source tree, not the result. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






