diff options
Diffstat (limited to 'SAX.c')
-rw-r--r-- | SAX.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |