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: Re[2]: [XSL] How to order numeric data containing comm


>   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


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