This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Sorting and Grouping revisited
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Sorting and Grouping revisited
- From: "Peet, Mike" <MPeet at ChoiceOneCom dot Com>
- Date: Wed, 18 Apr 2001 15:34:51 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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