Re: [xsl] number("2,000") -> NaN

Subject: Re: [xsl] number("2,000") -> NaN
From: Morten Primdahl <morten@xxxxxxx>
Date: Tue, 5 Feb 2002 11:49:11 +0100 (CET)
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


Current Thread