aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorAleksey Sanin <aleksey@src.gnome.org>2002-06-04 04:27:06 +0000
committerAleksey Sanin <aleksey@src.gnome.org>2002-06-04 04:27:06 +0000
commitf8cb6dda89d3866c796c8cfb2ba377d12822bf24 (patch)
tree20c94500dd6540483c40aa29abd961b47773eef7 /xpath.c
parentc57f9c12100ecea40faadaceb02899e9a5792571 (diff)
downloadandroid_external_libxml2-f8cb6dda89d3866c796c8cfb2ba377d12822bf24.tar.gz
android_external_libxml2-f8cb6dda89d3866c796c8cfb2ba377d12822bf24.tar.bz2
android_external_libxml2-f8cb6dda89d3866c796c8cfb2ba377d12822bf24.zip
added merlin-c14n-two.tar.gz tests for c14n/exc-c14n and slightly modified
* result/c14n/exc-without-comments/merlin-c14n-two-* result/c14n/without-comments/merlin-c14n-two-* test/c14n/exc-without-comments/merlin-c14n-two-* test/c14n/without-comments/merlin-c14n-two-* testC14N.c Makefile.am: added merlin-c14n-two.tar.gz tests for c14n/exc-c14n and slightly modified test script to handle these test cases * c14n.c: fixed bugs for complicated nodes set (namespace without node and others from merlin-c14n-two.tar.gz) * include/libxml/xpathInternals.h win32/dsp/libxml2.def.src win32/libxml2.def.src: "opened" xmlXPathNodeSetFreeNs() function for xmlsec performance patch * xpath.c: fixed self::node() for namespaces and attributes
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index d56c70f0..c166c820 100644
--- a/xpath.c
+++ b/xpath.c
@@ -1489,7 +1489,7 @@ xmlXPathNodeSetDupNs(xmlNodePtr node, xmlNsPtr ns) {
* the namespace nodes are duplicated and the next pointer is set to the
* parent node in the XPath semantic. Check if such a node need to be freed
*/
-static void
+void
xmlXPathNodeSetFreeNs(xmlNsPtr ns) {
if ((ns == NULL) || (ns->type != XML_NAMESPACE_DECL))
return;
@@ -8736,6 +8736,8 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
((cur->type == XML_DOCUMENT_NODE) ||
(cur->type == XML_HTML_DOCUMENT_NODE) ||
(cur->type == XML_ELEMENT_NODE) ||
+ (cur->type == XML_NAMESPACE_DECL) ||
+ (cur->type == XML_ATTRIBUTE_NODE) ||
(cur->type == XML_PI_NODE) ||
(cur->type == XML_COMMENT_NODE) ||
(cur->type == XML_CDATA_SECTION_NODE) ||