This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: number("2,000") -> NaN
- From: Morten Primdahl <morten at it-c dot dk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 5 Feb 2002 11:49:11 +0100 (CET)
- Subject: Re: [xsl] number("2,000") -> NaN
- Reply-to: xsl-list at lists dot mulberrytech dot com
On Tue, 5 Feb 2002, Joerg Heinicke wrote:
> For removing or replacing one character, you can use the
> translate()-function.
>
> <xsl:value-of select="translate(any_number, ',', '')"/>
> replaces every comma by 'nothing'.
Thanks Joerg. Just a nuisance that grouping-separator=""
is illegal. The translate trick seems to be.. well, a
trick - but it works great :)
Oh, just now did I realize that setting a sufficiently large
grouping-size works also if I explicitly state the separator.
Morten
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list