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: Fri, 26 Jan 2001 12:31:01 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks Mike. This works; problem solved.
-----Oorspronkelijk bericht-----
Van: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Namens Michael Kay
Verzonden: Friday, January 26, 2001 12:18
Aan: xsl-list@lists.mulberrytech.com
Onderwerp: RE: [xsl] Sort problem
>
> a, 1, 1, 1
> a, 1, 1, 3
> a, 1, 2, 2
> a, 1, 2, 3
> A, 1, 1, 2
> A, 1, 2, 1
>
> which is not what I want. The desired output should be:
>
> a, 1, 1, 1
> A, 1, 1, 2
> a, 1, 1, 3
> A, 1, 2, 1
> a, 1, 2, 2
> a, 1, 2, 3
>
> thus ingoring capital letters.
I think you want your primary sort key to be:
xsl:sort select="translate(., 'ABC...', 'abc....')"
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list