From 928d703386e049eaad10cf58d5fd39ebc5cfec98 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 29 Jul 2009 12:24:11 +0200 Subject: [PATCH] Skip silently unrecognized XPointer schemes * xpointer.c: unrecognized XPointers should be skipped instead of aborting the full XPointer evaluation --- xpointer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpointer.c b/xpointer.c index 5298fa5c..eea7070b 100644 --- a/xpointer.c +++ b/xpointer.c @@ -1152,10 +1152,12 @@ xmlXPtrEvalFullXPtr(xmlXPathParserContextPtr ctxt, xmlChar *name) { if (name == NULL) XP_ERROR(XPATH_EXPR_ERROR); while (name != NULL) { + ctxt->error = XPATH_EXPRESSION_OK; xmlXPtrEvalXPtrPart(ctxt, name); /* in case of syntax error, break here */ - if (ctxt->error != XPATH_EXPRESSION_OK) + if ((ctxt->error != XPATH_EXPRESSION_OK) && + (ctxt->error != XML_XPTR_UNKNOWN_SCHEME)) return; /*