Re: Two-level grouping problem
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?
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
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