Re: [xsl] Numbering new nodes using consecutive integers

Subject: Re: [xsl] Numbering new nodes using consecutive integers
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Fri, 27 Mar 2009 19:07:59 +0100
Wendell Piez schrieb:

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 challenge! So, no, there isn't.


The numbering would be trivially easy in a second pass.

I agree.


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.

Yes, but how would you *ever* generate numbers relative to the result ?!


Michael Ludwig

Current Thread