This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: format-number usage on international platform
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] format-number usage on international platform
- From: David_Marston at lotus dot com
- Date: Fri, 17 Aug 2001 10:56:39 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
Nuri Besen writes:
>[Error is] Malformed format string
> <xsl:value-of select="format-number(AMT,'#,##0')"/>
>I know the regional settings for WinNT4.0 are set to Turkish and the
>thousands separator is a '.' (period) and I have tested the format as:
>...
>Am I using this correctly? Any help is appreciated.
I think it's safest to declare a decimal-format so that you are sure
about which character is the grouping (thousands) separator. If ","
is the decimal-separator, then '#,##0' would become invalid because
you'd have optional digits (#) in between the decimal-separator (,)
and the mandatory digit (0).
.................David Marston
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list