[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:sort - sorting outline numbered values

Subject: Re: xsl:sort - sorting outline numbered values
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Thu, 30 Aug 2001 18:41:52 +0100
outline numbering sorting
I wrote a solution for almost precisely this problem - see
http://www.biglist.com/lists/xsl-list/archives/200104/msg01458.html -
and wrote a later version at
http://redrice.com/xml/sortfunction_0_1.zip.

My approach was to develop separate sort and comparison functions, so
that you could use a comparison function specific to your data with a
general sort function. The approach is good but I ran out of time and
the code is still buggy, but you're welcome to use it if you think it
might be of help.

Dimitre mentioned the possibility of using a pure template approach - I
don't know if he implemented it.

Francis.

Ilya Khandamirov wrote:
> 
> Dear List,
> 
> xsl:sort element, combined with MSXML, sorts the following values absolutely
> correctly (as text):
> 
> 1
> 1.1
> 10
> 11.1.1
> 2.1
> 
> But i would like to get slightly different result:
> 
> 1
> 1.1
> 2.1
> 10
> 11.1.1
> 
> Does somebody know of XSLT solution for that?
> p.s. There can be up to 15 numbering levels in the source XML file.
> 
> Thank you.
> 
> Regards,
> Ilya
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.