summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-18 11:19:30 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-18 11:19:30 +0000
commit2875770e5301f96c4c7bf576d611613cf912b632 (patch)
tree581b3999ff71a196eef9e16f868033b4374f1abc /entities.c
parent82ac6b0299d494b66416ba476c483f66893ec3e2 (diff)
downloadlibxml2-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.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/entities.c b/entities.c
index af65a38c..4f6f52a6 100644
--- a/entities.c
+++ b/entities.c
@@ -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)