Commit d01fd3ed authored by Daniel Veillard's avatar Daniel Veillard
Browse files

a couple of errors were reported but not saved back as such in the parsing

* parser.c valid.c: a couple of errors were reported but not
  saved back as such in the parsing context. Down to 1% failure rate
  Ran 1819 tests: 1801 suceeded, 18 failed and 0 generated an error
Daniel
parent 4a7ae503
Mon Feb 18 23:25:08 CET 2002 Daniel Veillard <daniel@veillard.com>
* parser.c valid.c: a couple of errors were reported but not
saved back as such in the parsing context. Down to 1% failure rate
Ran 1819 tests: 1801 suceeded, 18 failed and 0 generated an error
Mon Feb 18 20:16:15 CET 2002 Daniel Veillard <daniel@veillard.com>
* xmlInternald.c: isExtender was missing a char
......
......@@ -5515,12 +5515,14 @@ xmlParseEntityRef(xmlParserCtxtPtr ctxt) {
ctxt->sax->error(ctxt->userData,
"Entity '%s' not defined\n", name);
ctxt->wellFormed = 0;
ctxt->valid = 0;
ctxt->disableSAX = 1;
} else {
ctxt->errNo = XML_WAR_UNDECLARED_ENTITY;
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData,
"Entity '%s' not defined\n", name);
ctxt->valid = 0;
}
}
......
......@@ -1295,6 +1295,7 @@ xmlAddAttributeDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *elem,
VERROR(ctxt->userData, "Attribute %s on %s: invalid default value\n",
elem, name, defaultValue);
defaultValue = NULL;
ctxt->valid = 0;
}
/*
......
Supports Markdown
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