lijun zou wrote:
Hi, I am trying to generate PDF using FOP. But I got a rounding error when using the following
fo script
<fo:block>
<xsl:value-of select="format-number(0.5,'0')"/>
</fo:block>
This is not a "rounding error" You have specified your format to be "0", so the string "0" is always output. I think what you need is:
<xsl:value-of select="format-number(0.5,'#,##0.0')"/>
<snip/>
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]