xsl-list
[Top] [All Lists]

RE: sorting on elementnames

2003-09-26 08:30:15
<xsl:sort select="name()"/>

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
marcel salathe
Sent: 26 September 2003 15:52
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] sorting on elementnames


Hello

A rather simple question: how can I sort on element names?

All sorting examples I've found sort on attribute values or 
element values, but not on element names. 
For example, I have

<something>
   <a>
   <b>
   <b>
   <a>
   <b>
</something>

and I want to get 

<something>
   <a>
   <a>
   <b>
   <b>
   <b>
</something>

Thanks very much for help!

Regards,
Marcel

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... 
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



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



<Prev in Thread] Current Thread [Next in Thread>