[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Sorting in A for-each-group

Subject: RE: Sorting in A for-each-group
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 21 Jun 2007 08:58:58 +0100
RE:  Sorting in A for-each-group
> 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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.