1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed bug 124061 (problem with namespace eval)

* xpath.c: fixed bug 124061 (problem with namespace eval)
This commit is contained in:
William M. Brack
2003-10-10 03:58:39 +00:00
parent d0c9c32f64
commit 40c22b472b

View File

@ -5758,6 +5758,8 @@ xmlXPathNextPrecedingInternal(xmlXPathParserContextPtr ctxt,
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))