commit | 40c22b472b3d24ecc2f5b843aa3fffad6ed5cf5e | [log] [tgz] |
---|---|---|
author | William M. Brack <wbrack@src.gnome.org> | Fri Oct 10 03:58:39 2003 +0000 |
committer | William M. Brack <wbrack@src.gnome.org> | Fri Oct 10 03:58:39 2003 +0000 |
tree | 7757634ac4d66c23fcbb482d79b112e1f4152713 | |
parent | d0c9c32f64c09c699c54dc9ffb8558c297f9e08e [diff] [blame] |
fixed bug 124061 (problem with namespace eval) * xpath.c: fixed bug 124061 (problem with namespace eval)
diff --git a/xpath.c b/xpath.c index 605b588..8008491 100644 --- a/xpath.c +++ b/xpath.c
@@ -5758,6 +5758,8 @@ cur = ctxt->context->node; if (cur == NULL) return (NULL); + if (cur->type == XML_NAMESPACE_DECL) + cur = (xmlNodePtr)((xmlNsPtr)cur)->next; ctxt->ancestor = cur->parent; } if ((cur->prev != NULL) && (cur->prev->type == XML_DTD_NODE))