fixed bug 121759 - early declaration of attribute-list in external DTD
* valid.c: fixed bug 121759 - early declaration of
attribute-list in external DTD
diff --git a/valid.c b/valid.c
index 5e28d0d..36d1a35 100644
--- a/valid.c
+++ b/valid.c
@@ -1214,6 +1214,11 @@
xmlFree(uqname);
return(NULL);
}
+ /*
+ * For new element, may have attributes from earlier
+ * definition in internal subset
+ */
+ ret->attributes = oldAttributes;
}
/*
@@ -1221,7 +1226,6 @@
*/
ret->etype = type;
ret->content = xmlCopyElementContent(content);
- ret->attributes = oldAttributes;
/*
* Link it to the DTD