[xsl] processing numbers in scientific notatioin

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

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: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,

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