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

processing numbers in scientific notatioin

Subject: processing numbers in scientific notatioin
From: "j_aseef i" <j_aseef@xxxxxxxxxxx>
Date: Thu, 10 Oct 2002 06:23:08 +0000
scientific notaion

Hi,
I need to process values passed in decimal format. The problem is when numbers are passed in scientific notaion the number() function is not recognizing it and outputs a NaN.
This following works fine
<xsl:value-of select="format-number((-3.9023177125017977E-4 * 100), '0.00', 'eurofrmt')"/>


but this doesnt
<xsl:variable name="temp"><xsl:value-of select = "field1" disable-output-escaping = "no" />
</xsl:variable>
<xsl:value-of select = "number($temp)" disable-output-escaping = "yes" />


I read somewhere that xpath2 compliant parsers alone process these kind of data. Should i make some entries in my xsl so that processing is done according to xpath2 or any required specification.

Thanks in advance,
aseef.j



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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.