This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re[2]: [XSL] How to order numeric data containing comm
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: Re[2]: [xsl] [XSL] How to order numeric data containing comm
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 8 May 2001 14:38:40 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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