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

Re: Group and sort nodes by attribut in child node

Subject: Re: Group and sort nodes by attribut in child node
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 14 Oct 2011 16:05:44 +0200
Re:  Group and sort nodes by attribut in child node
Jens Burkhardt wrote:

The result should be like this:
   A - 23.10.2010
   X_Group
     C - 23.10.2010
     B - 24.12.2010
   D - 25.10.2010
   Y_Group
     D - 25.12.2010
     E - 26.12.2010

I want to group by the value of the group field in the column node and everything should be sorted by start_date. The name of the group (e.g. X_Group) should start a group-block, followed by the record nodes which belong to the group value.
Another problem is that i donB4t know the group value in advance, because they can be set to whatever the user want.

Do you use XSLT 2.0 or 1.0?
And what about the record with keyword value "A" and the one with keyword value "D" where the group value is an empty string? Shouldn't they be in the same group?



--


	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/

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.