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

function number()

Subject: function number()
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Thu, 24 Apr 2003 17:17:57 -0400
function number
>I am using xalan-J transformation engine on UNIX platform.
>When I use the xsl function number() for a large value , there seems to 
be
>an overflow and the function returns an arbitrarily large number.
>e.g. number('1900385999.000') returns 576398327.327184

For Xalan-specific questions, you're better off hitting Xalan's own 
mailing liet.

If you're using the same release of Xalan on both platforms, I can't think 
of anything that would cause this difference unless it's a divergence in 
the underlying JVM's math libraries. If you aren't using the same release, 
fix that and try again; there was a known bug in some versions of Xalan's 
string-to-double conversion.

(Note that we don't use the built-in Java function because it would accept 
strings that XSLT says we shouldn't.)

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. 
"may'ron DaroQbe'chugh vaj bIrIQbej"  ("Put down the squeezebox and nobody 
gets hurt.")


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


Current Thread

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.