xsl-list
[Top] [All Lists]

processing numbers in scientific notatioin

2002-10-09 23:23:08

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



<Prev in Thread] Current Thread [Next in Thread>