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

Classic many-to-many sorting

Subject: Classic many-to-many sorting
From: Frans Englich <frans.englich@xxxxxxxxx>
Date: Fri, 10 Sep 2004 13:34:25 +0000
many to many sorting
Hello all,

I have a document containing:

<object name="a" property="foo"/>
<object name="b" property="bar"/>
<object name="c"  property="foo"/>
<object name="d" property="bar"/>
<object name="e" property="bar"/>
[...]

The name is unique and there are many different kinds of values of property, 
some of them duplicates or more, like in the example.

What I want to do is a classic sorting: List all objects that have the same 
property value. For example:

Object "a" and "c", have their property attribute set to "foo".
Object "b","d" and "e", have their property attribute set to "bar".
[etc.]

With a traditional programming language this would have been easy, but what is 
the best and Right Way to do it in XSLT? Or should I resort to for-each and 
if's?

I can change the generation of the source document, if that is of interest.


Thanks in advance,


			Frans

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.