[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Xalan Rounding

Subject: RE: Xalan Rounding
From: "Stuart Celarier" <stuart@xxxxxxxxxxx>
Date: Fri, 10 May 2002 13:13:18 -0700
format number xalan rounding issue
Agreed. I thought the value of presenting this approach is that it is
adaptable to whatever rounding (or other) math you might require, e.g.,
use floor() or ceiling(), round to the nearest 100, etc.

And it provides a workaround until Xalan fixes the defect <sm;)ey/>

Cheers,
Stuart

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeff Kenton
 
..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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Xalan Rounding
    • Nik Krimm - Fri, 10 May 2002 14:32:22 -0400 (EDT)
      • Jeff Kenton - Fri, 10 May 2002 15:16:22 -0400 (EDT)
      • Stuart Celarier - Fri, 10 May 2002 15:24:42 -0400 (EDT)
        • Jeff Kenton - Fri, 10 May 2002 15:38:58 -0400 (EDT)
          • Stuart Celarier - Fri, 10 May 2002 16:24:29 -0400 (EDT) <=
      • <Possible follow-ups>
      • Nik Krimm - Fri, 10 May 2002 16:06:33 -0400 (EDT)
      • Nik Krimm - Fri, 10 May 2002 16:23:02 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.