xsl-list
[Top] [All Lists]

RE: [xsl] Sorting in A for-each-group

2007-06-21 00:59:23
But in your solution you 
placed the sort instruction in the 3rd for-each-group and it 
produced the correct results, this is what i'm confused 
about, isn't this suppose to sort the current-group in the 
3rd for-each-group which is the 3rd level div elements?

Suppose you are grouping employees by department and write

<xsl:for-each-group select="employee" group-by="department/@code">
  <xsl:sort select="department/budget"/>

This xsl:sort controls the order in which the departments are listed. It
does not control the order of the employees within each department.

Is this where your confusion lies?

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


--~------------------------------------------------------------------
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>