This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Sort problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Sort problem
- From: Mick <mick at telekabel dot nl>
- Date: Mon, 5 Feb 2001 14:54:32 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks Dimitre and Jeni for you help. Dimitre, you're sollutions seem to be
what I was looking for. Jeni, I will study your sollutions in detail as well
(after a few more coffees).
-mick
-----Oorspronkelijk bericht-----
Van: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Namens Dimitre Novatchev
Verzonden: Monday, February 05, 2001 13:54
Aan: mick@telekabel.nl
CC: xsl-list@lists.mulberrytech.com
Onderwerp: Re: [xsl] Sort problem
At last, here's the correct solution:
The xsl:sort element in the previous stylesheet must be modified to the
following:
<xsl:sort
select="translate(concat(.,self::*[contains(.,'')]
/following::word[@type='end']), '-', '')"/>
This will work, regardless of what character is used for hyphenation.
Dimitre.
--- Dimitre Novatchev <dnovatchev@yahoo.com> wrote:
> OK,
>
> This will work only if your hyphenation character comes before any
> other characters in the words.
>
> One example is to use"~" instead of "-".
>
> Interestingly enough, MSXML3 sorts "-" before the alphabetical
> characters and "~" after them.
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list