This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: sort
- From: Hervé Covemaeker <herve dot covemaeker at ictportal dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 1 Feb 2002 17:49:31 +0100
- Subject: RE: [xsl] sort
- Reply-to: xsl-list at lists dot mulberrytech dot com
yo Fré
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Frederic
Leclercq
Sent: Saturday, February 02, 2002 1:24 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] sort
Hi,
I have following XML :
<root>
<persistentId>4317922674763656975</persistentId>
<hyperlink>hyperlink</hyperlink>
<description>beschrijving</description>
<language>Nederlands</language>
<keywords>sleutel</keywords>
<fileName>kamerWebsite.doc</fileName>
<internalUse>false</internalUse>
<hits>0</hits>
<subroot>
<persistentId>2</persistentId>
<state>send</state>
</subroot>
<person>
<persistentId>1</persistentId>
<firstName> Administrator</firstName>
<lastName> </lastName>
<supelogin>
<login>administrator</login>
<user>true</user>
<coordinator>false</coordinator>
<supervisor>false</supervisor>
<administrator>true</administrator>
</supelogin>
</person>
<storageType>FILE FILE</storageType>
<visibleEverywhere>false</visibleEverywhere>
</root>
that's one "record" - i have 100's of them in the XML string.
Following works perfect if i would like to sort on one of the first level
tags...
<xsl:apply-templates>
<xsl:sort select="*[name()=$sortering]" order="{$direction}"/>
</xsl:apply-templates>
But now i would like to sort the xmlstring on "root.person.supelogin.login"
Anybody could help me out ?
Thx,
Fred.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list