This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Sort problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]