This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Xalan Rounding
- From: "Nik Krimm" <Nik dot Krimm at emacdigital dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 10 May 2002 14:55:27 -0500
- Subject: RE: [xsl] Xalan Rounding
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks Jeff and Stuart for the info and suggestions:
I had stripped down my code to the simplest version that would still reproduce the error:
format-number( //value, '##')
While this describes the problem,
-----Original Message-----
From: Jeff Kenton [mailto:jkenton@datapower.com]
Sent: Friday, May 10, 2002 2:31 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Xalan Rounding
On Fri, 10 May 2002, Stuart Celarier wrote:
..Perform whatever rounding math you desire explicitly before passing the
..value to format-number:
..
.. format-number( round(//value), '##')
..
This will work, and solve his problem, but the spec is clear that
format-number() should do that for him. The XSLT 2.0 spec has the gory
details, as does the Java spec referenced in the XSLT 1.0 spec.
--
Jeff Kenton
DataPower Technology, Inc.
**** Wire speed XSLT ****
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list