Subject: RE: Re[2]: [XSL] How to order numeric data containing comm
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 8 May 2001 14:38:40 +0100
|
> If, on the other hand, you are using commas as "thousand"
> separators,
> you can use transform this way:
>
> <xsl:sort select="translate(., ',', '0')" data-type="number"/>
>
> This will change "1,000" to "10000".
Much better to use select="translate(., ',', '')" which will change "1,000"
to "1000".
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|