Commit 9ff2d478 authored by Daniel Veillard's avatar Daniel Veillard

fix bug #107208 avoid false duplicates when ID/REFs are defined in

* SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are
  defined in entities content
Daniel
parent 99737f50
Sat Mar 22 16:15:50 CET 2003 Daniel Veillard <daniel@veillard.com>
* SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are
defined in entities content
Sat Mar 22 15:53:27 CET 2003 Daniel Veillard <daniel@veillard.com>
* SAX.c: Fixed validation bug #108858 on namespace names using
......
......@@ -1068,8 +1068,9 @@ my_attribute(void *ctx, const xmlChar *fullname, const xmlChar *value,
ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, ctxt->myDoc,
ctxt->node, ret, value);
}
} else if (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) ||
((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0))) {
} else if ((((ctxt->replaceEntities == 0) && (ctxt->external != 2)) ||
((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0))) &&
(ctxt->depth == 0)) {
/*
* when validating, the ID registration is done at the attribute
* validation level. Otherwise we have to do specific handling here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment