Re: [xsl] Numbering new nodes using consecutive integers

Subject: Re: [xsl] Numbering new nodes using consecutive integers
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Mar 2009 19:49:04 +0100
At 2009-03-27 19:07 +0100, Michael Ludwig wrote:
Wendell Piez schrieb:
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 ?!

Only by painstakingly recreating the algorithms that generate the result, because the result tree cannot be accessed by XPath expressions.


I hope this helps.

. . . . . . . . . . Ken

--
XSLT/XSL-FO/XQuery training in Los Angeles (New dates!) 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread