xsl-list
[Top] [All Lists]

RE: [xsl] Trouble grouping with for-each-group and sort

2010-03-17 13:33:12

Sets of nodes in XSLT are in document order.  When you want 
the information ordered, you process them in sorted order.

Yes, but there is no select that will pass the set of nodes 
in sorted order.  Sets of nodes are in always in document 
order.  

Umm - I think you might have engaged your 1.0 autopilot here, Ken, whereas
this is 2.0.

In 2.0, we have sequences not sets, and the nodes in a variable (or indeed
in current-group()) can be in any order. So you can create a sorted sequence
in a variable and pass that to your named template.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>