commit | f39fd66ea768802665e0a010f4be408ef9c69bcf | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Apr 27 03:01:16 2016 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Apr 27 11:21:35 2016 +0200 |
tree | d37e7f06dcb4a056c51932e8b9464be2e58931d0 | |
parent | 91ac664f4b3d3ed55f5ff297f1ddbc7acb425006 [diff] |
Fix namespace::node() XPath expression Make sure that xmlXPathNodeSetAddNs is called for namespace nodes when matched with a namespace::node() step. This correctly sets the parent of namespace nodes. Note that xmlXPathNodeSetAddNs must only be called if working on the namespace axis. Otherwise, the context node is not the parent of the namespace node and the standard XP_TEST_HIT macro must be invoked. This explains the errors in the C14N tests that the old TODO comment mentioned.