xsl-list
[Top] [All Lists]

Re: Sorting with partial string

2006-01-27 08:36:32
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. +----------------------------------------------+

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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