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]
Other format: [Raw text]

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



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


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