problem with IBM JVM when dealing with xslt function format-number()

在使用IBM JVM进行XSLT转换时遇到一个问题,当尝试将特定数值转换为字符串格式时,结果不符合预期。该问题在Windows 7自带的JRE上则能够正常工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

when debugging an xslt problem recently, I ran into this finding that, IBM JVM shipped with RAD , no matter it is JDK, JRE, no matter it is WAS 6 jre, WAS 7 jre. All having problem giving result of below function call


format-number('199.9999999995', '#,##0.00')


the result is 199.00 in the pdf! (I used an dummy xml input and the xslt which contains this line, to have a pdf output via fop 0.20, through command java call).


why i am saying that it is with IBM JVM (mabe the xerces.jar?) , when running this with JRE shipped with my windows 7 system (version 6 , detailed version information to be supplemented), it works fine , "200.00" it is.


This confuses me much and i have been searching through the Internet but don't have a clue.


Is it possible the problem lies in fop too? I might give it a shot later. Not convert to pdf but xml + xslt -> xml.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值