OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] sorting elements

[ Lists Home | Date Index | Thread Index ]

As well as David's reply, see also the recent thread under the title "natural sorting" on the mulberrytech xsl-list.
 
I'm planning to introduce an alphanumeric collation in the next Saxon release which will handle this kind of ordering.
 
Michael Kay
http://www.saxonica.com/


From: Esteban Pizzini [mailto:esteban.pizzini@gmail.com]
Sent: 01 February 2006 13:57
To: xml-dev@lists.xml.org
Subject: [xml-dev] sorting elements

Hi people,

I have to sort some elements that have the following content:

<art>1.1</art>
<art>1</art>
<art>2</art>
<art>2.1.1</art>
<art>2.1</art>

and the order should be 1 - 1.1 - 2 - 2.1 - 2.1.1

What method should I use? because the value that I've to use for sorting has a hierarchical meaning..
Any idea?

Thanks!!

Esteban






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS