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

RE: large and small numbers in xsl

Subject: RE: large and small numbers in xsl
From: "Arnold, Curt" <Curt.Arnold@xxxxxxxxxxxxx>
Date: Fri, 18 Feb 2000 12:17:06 -0700
formatting exponent numbers xsl
Michael Kay wrote
> I can't get my head round what this means in practice. How would you
> represent 1e-157 for instance?

As 0.000(lots of zeroes)0001
----

Ouch, that hurts bad.  I had thought (but not actually followed up with research) that DecimalFormat might not be sufficient for scientific use, however I thought that if you were using IEEE double
precision, you must be allowing some sort of exponent term in input values.

In these ways I intend to use XSLT, I'm going to have to find a way to work around this.

I assume that means that you need to do something like define functions in Java to do your conversion and formatting, explicitly call them to perform conversions and then use XT's extension mechanism
tie the Java code to the XSLT function name.

There was a comment on the Xalan development list about starting development for embeddeding scripting.  I assume that JavaScript or VBScript would give you sufficient conversion and formatting power
and it would be more elegant than the external Java class file.

Have there been any good threads on extension mechanisms and/or numeric formatting that I have missed?


 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.