[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] processing numbers in scientific notatioin
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|