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