Subject: Re: xsl:sort - sorting outline numbered values
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Thu, 30 Aug 2001 18:41:52 +0100
|
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 |
- Re: Replacing all Occurences of a String, (continued)
- cutlass - Thu, 30 Aug 2001 11:04:44 -0400 (EDT)
- Ilya Khandamirov - Thu, 30 Aug 2001 11:38:19 -0400 (EDT)
- David Carlisle - Thu, 30 Aug 2001 12:08:58 -0400 (EDT)
- Thomas B. Passin - Thu, 30 Aug 2001 12:47:17 -0400 (EDT)
- Francis Norton - Thu, 30 Aug 2001 13:51:25 -0400 (EDT) <=
- David Carlisle - Thu, 30 Aug 2001 10:19:22 -0400 (EDT)
- Roger - Thu, 30 Aug 2001 10:54:40 -0400 (EDT)
- Chris Bayes - Thu, 30 Aug 2001 12:14:32 -0400 (EDT)
- Wendell Piez - Thu, 30 Aug 2001 14:39:01 -0400 (EDT)
|
|