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

Sorting and Grouping revisited

Subject: Sorting and Grouping revisited
From: "Peet, Mike" <MPeet@xxxxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2001 15:34:51 -0400
mike de peet
This isn't really a question, other than to ask, 'am I crazy for expecting
XSLT to be able to handle sorting and grouping gracefully?'

After a week of research trying to find out why I'm having so much trouble
doing this, I find this in the FAQ (under Grouping by attribute):

'There is no simple way of doing grouping in XSLT. In some cases it can be
done, painfully and generally rather slowly, by testing each item to see if
it is the same as the previous item. 
There is a proprietary feature in SAXON XSL to do grouping, the saxon:group
element. Give it a try.'

It seems to me the best bet for accomplishing what I need to do is to
restructure my XML.  As another member of this group noted, this is changing
the data subtly for a presentation reason.  This seems wrong.

In short, it seems as if the shortcoming is simply the lack of a way to
access elements of a sorted node list (as opposed to in document-order).  I
have read many archived messages from this group, but am I missing
something?

Best regards,

Mike

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.