![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem using msxml Problem using msxmlTo: NULL Date: 9/6/2004 11:31:00 PM I have an xml file: <?xml version="1.0" encoding="UTF-8"?> <myspace> <stuff>5.6</stuff> <stuff>1.27E-2</stuff> </myspace> I have a stylesheet: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match=".//stuff"> Value: <xsl:value-of select="number(.)"/> </xsl:template> </xsl:stylesheet> I expect the results: <?xml version="1.0" encoding="UTF-8"?> Value: 5.6 Value: 0.0127 The results I get: <?xml version="1.0" encoding="UTF-16"?> Value: 5.6 Value: NaN The parser doesn't seem to support exponential notation for numbers! Is this true, or am I doing something wrong? Is there a work around, as I have a lot of data from excel spreadsheets that use this notation, and my style sheets are not working well with it!!! Hugh | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
