[xsl] xsl sorting

Subject: [xsl] xsl sorting
From: Jarkko.Moilanen@xxxxxx
Date: Wed, 17 Apr 2002 08:41:02 +0300 (EEST)
Hi!

If there is several sorting orders, they are all applied and not
only the last one. For example if there is xml file that includes
severals sets like:

<Subject id="0000000001" id2="001" id3="001">Juu juu</Subject>
<Subject id="0000000001" id2="002" id3="002">RE:Juu juu</Subject>
<Subject id="0000000001" id2="002" id3="001">RE:Juu juu</Subject>

and sets are sorted:
<xsl:sort select="Subject/@id" order="ascending" /> 
<xsl:sort select="Subject/@id2" order="ascending" />
<xsl:sort select="Subject/@id3" order="ascending" />

So the result would be:
<Subject id="0000000001" id2="001" id3="001">Juu juu</Subject>
<Subject id="0000000001" id2="002" id3="001">RE:Juu juu</Subject>
<Subject id="0000000001" id2="002" id3="002">RE:Juu juu</Subject>

Right?

Cheers
Jarkko

*******************************************************************
Jarkko Moilanen         *You are wise, witty, and wonderful,      *
Researcher/ ITCM        *but you spend too much time              *
jarkko.moilanen@xxxxxx  *reading this sort of trash.              *
www.uta.fi/~jm60697     *                                         *
GSM: +358 50 3766 927   *                                         *
*******************************************************************
* ITCM Information Technology and Crisis Management               *
*******************************************************************

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


Current Thread