Subject: Re: [xsl] Two-level grouping problem From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 10 May 2005 20:27:01 -0400 |
Given that "we could as well use the value of the last() node of $rows[...] above to same effect", why is document order important?
Thank you for bringing this up. What I was getting at was that $rows[...] brings back nodes in a predictable order--document order in this case.
The predictable order is important if our reference node on the RHS ( first(), last(), whatever) is to serve as a predictably-locatable node among its like-valued ilk.
Isn't the important bit that one and only one of the possibly multiple items be picked up by the expression, regardless of where in the document order the one we match may be?
Yes, this is the goal, but to achieve this using generate-id() we're relying on an [implicit] order to $rows, no?
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Two-level grouping proble, Aron Bock | Thread | Re: [xsl] Two-level grouping proble, Aron Bock |
Re: [xsl] xsl:stylesheet vs xsl:tra, Alex Milowski | Date | RE: [xsl] xsl:stylesheet vs xsl:tra, Mukul Gandhi |
Month |