Skip to content

Commit

Permalink
Skip silently unrecognized XPointer schemes
Browse files Browse the repository at this point in the history
* xpointer.c: unrecognized XPointers should be skipped instead of
  aborting the full XPointer evaluation
  • Loading branch information
jwilk authored and veillard committed Jul 29, 2009
1 parent 023d0ba commit 928d703
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpointer.c
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 928d703

Please sign in to comment.