[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Sorting with partial string


Subject: Re: [xsl] Sorting with partial string
From: Martin Gadbois <martin.gadbois@xxxxxxxxxxxx>
Date: Fri, 27 Jan 2006 10:36:32 -0500

David Carlisle wrote:
> <xsl:sort select="concat(substring-after(.,'no '),.)"/>
> 

Wow!
It's ugly, but it works!

Took me some time to understand, here's the result string that is sorted:
<cmd>abacus</cmd> -> abacus
<cmd>no abacus</cmd> -> abacusno abacus
...

Thank you David! You're a magician!

-- 
==============         +----------------------------------------------+
Martin Gadbois         | "Windows might take you from 0 to 60 faster, |
S/W Developer          |  but to go to 100 you need Unix."            |
Colubris Networks Inc. +----------------------------------------------+


Current Thread