diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-02-18 11:19:30 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-02-18 11:19:30 +0000 |
commit | 2875770e5301f96c4c7bf576d611613cf912b632 (patch) | |
tree | 581b3999ff71a196eef9e16f868033b4374f1abc /entities.c | |
parent | 82ac6b0299d494b66416ba476c483f66893ec3e2 (diff) | |
download | libxml2-2875770e5301f96c4c7bf576d611613cf912b632.tar.gz |
fixed a couple of conformances issues deep into the validation code
* SAX.c entities.c: fixed a couple of conformances issues deep
into the validation code (standalone and undeclared Notations)
Daniel
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -385,11 +385,14 @@ xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) { if (cur != NULL) return(cur); } - if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) { - table = (xmlEntitiesTablePtr) doc->extSubset->entities; - cur = xmlGetEntityFromTable(table, name); - if (cur != NULL) - return(cur); + if (doc->standalone != 1) { + if ((doc->extSubset != NULL) && + (doc->extSubset->entities != NULL)) { + table = (xmlEntitiesTablePtr) doc->extSubset->entities; + cur = xmlGetEntityFromTable(table, name); + if (cur != NULL) + return(cur); + } } } if (xmlPredefinedEntities == NULL) |