[xsl] sort

Subject: [xsl] sort
From: Frederic Leclercq <frederic@xxxxxxxxxxxxx>
Date: Sat, 02 Feb 2002 01:24:19 +0100
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


Current Thread