[xml] XPath, NODE_TEST_ALL and namespace



Hi,

The NODE_TEST_ALL  test is not correct.
For an xpath expression "p:*", libxml returns the correct list of the elements in the namespace associated to the prefix "p".

That is not the case for the expression "@p:*".
libxml does not test the namespace of the attributes.

See the function xmlXpathNodeCollectAndTest (xpath.c ) line 12419 in 2.9.1 :
        case NODE_TEST_ALL:...
I think that the AXIS_ATTRIBUTE must be handled like the XML_ELEMENT_NODE.

François.




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