![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using format-number(-1234.56,'#,##0.00;(#,##0.00)') in a stylesheet that works in every xsl processor (including MSXML2) except for the one in .NET 1.1. I am expecting to see (1,234.56) as the result of this function, but am getting an ArgumentException : NumberGroupSizes error with the message "Parameter name: Every element in the value array should be between one and nine, except for the last, which can be zero" : : Can anyone shed any light on this or suggest a viable workaround. |
aram name="num" />
#3
| |||
| |||
|
|
"Richard Haber" <richard_haber (AT) hotmail (DOT) com> wrote I am using format-number(-1234.56,'#,##0.00;(#,##0.00)') in a stylesheet that works in every xsl processor (including MSXML2) except for the one in .NET 1.1. I am expecting to see (1,234.56) as the result of this function, but am getting an ArgumentException : NumberGroupSizes error with the message "Parameter name: Every element in the value array should be between one and nine, except for the last, which can be zero" : : Can anyone shed any light on this or suggest a viable workaround. - - - workaround.xsl (excerpt) !-- . . . -- xsl:template name="formatNumber" xsl aram name="num" /xsl:choose xsl:when test="number($num) < 0" xsl:value-of select="format-number( number($num), '(#,##0.00)')" / /xsl:when xsl:when test="number($num) >= 0" xsl:value-of select="format-number( number($num), '#,##0.00')" / /xsl:when /xsl:choose /xsl:template !-- . . . -- xsl:call-template name="formatNumber" xsl:with-param name="num" select="-1234.56" / /xsl:call-template !-- . . . -- - - - Derek Harmon |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |