[xml] XPath question w/ libxml2



This is really an XPath question: have read the XPath 1.0 spec and am not clear on the proper behavior for a predicate when NaN is used in an _expression_ such as:

 

node[number(‘NaN’)]

 

libxml2 appears to evaluate this predicate as all nodes, whereas I would have thought it would match zero nodes.  Is this behavior defined?

 

 



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