RE: [xsl] Sort problem

Subject: RE: [xsl] Sort problem
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 26 Jan 2001 11:18:14 -0000
> 
> 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


Current Thread
  • [xsl] Sort problem
    • Mick - Fri, 26 Jan 2001 10:58:07 +0100
      • Michael Kay - Fri, 26 Jan 2001 11:18:14 -0000 <=
        • Mick - Fri, 26 Jan 2001 12:31:01 +0100
      • <Possible follow-ups>
      • Eyal Shneider - Fri, 26 Jan 2001 12:17:27 +0200
        • Mick - Fri, 26 Jan 2001 11:44:54 +0100
      • Eyal Shneider - Fri, 26 Jan 2001 13:03:16 +0200