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
The result from fop is
0
instead of
1
Is this a bug?
How do we get around of it?
Thanks
LZ
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
lijun zou wrote:
No, It is an error.
'0' is a pattern, meaning round to integer.
Perhaps you are right. But this is really the wrong forum for this question as
its a pure xslt question. You will get better answers on the xsl-list:
http://lists.mulberrytech.com/xsl-list/
I use other formatter,
-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
lijun zou wrote:
No, It is an error.
'0' is a pattern, meaning round to integer.
Perhaps you are right. But this is really the wrong
forum for this question as its a pure xslt question.
You will get better