From 40c22b472b3d24ecc2f5b843aa3fffad6ed5cf5e Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Fri, 10 Oct 2003 03:58:39 +0000 Subject: [PATCH] fixed bug 124061 (problem with namespace eval) * xpath.c: fixed bug 124061 (problem with namespace eval) --- xpath.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpath.c b/xpath.c index 605b5887..80084911 100644 --- a/xpath.c +++ b/xpath.c @@ -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))