Subject: [xsl] Problem with sort order From: Per Åberg <aberg.per@xxxxxxxx> Date: Tue, 22 Aug 2006 20:22:48 +0200 |
In my xslt file, I want to examine the attributes of the xml elements, transform some of them (if needed), and then sort the output after the attributes. My problem is that the transformed attributes become sorted after their "ingoing" value instead of their new value. The following invented example shows the problem. According to the xsl 1.0 specs the output of the transformation should be sorted, but here it seems like the input is being sorted. Does anyone know how I can get it right?
Thanks in advance, Per
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="xslt_file.xsl"?> <animal> <species> <name language="English">Wolf</name> <name language="Spanish">Lobo</name> <name language="Danish">Canis Lupus</name> <name language="French">Loup</name> </species> </animal>
<animal> <species> <name language="Latin">Canis Lupus</name> <name language="English">Wolf</name> <name language="French">Loup</name> <name language="Spanish">Lobo</name> </species> </animal>
<animal> <species> <name language="English">Wolf</name> <name language="French">Loup</name> <name language="Latin">Canis Lupus</name> <name language="Spanish">Lobo</name> </species> </animal>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Constructing documents fr, Wendell Piez | Thread | RE: [xsl] Problem with sort order, Michael Kay |
RE: [xsl] Saxon removes namespace i, M 1879 | Date | [xsl] An XSL strategy for mixing re, Dan Vint |
Month |