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: format-number usage on international platform



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


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