Re: [xml] xmlXPathStringEvalNumber vs. atof



* Christopher R. Palmer wrote:
<xsl:value-of select="0.09 = .9e-1"/>

In XPath 1.0 that is illegal syntax; it is legal syntax in XPath 2.0
which libxml2 does not support. Whether the specifications require
the expression above to evaluate to true I am not sure. XPath 1.0 has
specific requirements for parsing its numeric literals.
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]