format-number round and negative 2006-08-09 - By Sam Prokop
Hi all,
i�ve got the following problem:
if i use format-number and use formatting-pattern ###.##0,0 with this decimal-format definition:
<xsl:decimal-format name="standard" decimal-separator="," grouping-separator=". " infinity="Infinity" minus-sign="-" NaN="NaN" percent="%" per-mille="‰" zero-digit="0" digit="#" pattern-separator=";"/>
i get -0,0 if the input-xml has the value -0.03, i expected 0,0 and i get -0,0 if the input-xml has the value -0.05, i expected -0,1
msxml does what i expect, but i won�t use that one.
So, is this behavior of xalan a bug or a feature? and is there a work-around?
Thanks in anticipation
Sam
|
|