xsl-list
[Top] [All Lists]

Re: Sorting with partial string

2006-01-27 14:50:40
Would this break with:

<list>
<cmd>pianoman</cmd>
<cmd>no pianoman</cmd>
</list>

i.e. the non-no component contains a substring "no"

-Tim Lebo

Dimitre Novatchev wrote:
Use:

<xsl:sort select=
          "substring(.,1+3*boolean(substring-after(.,'no ')))"/>



--~------------------------------------------------------------------
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>