filter warning messages if the global setting blocks them updated the
* error.c: filter warning messages if the global setting blocks them
* xinclude.c xmlreader.c include/libxml/xinclude.h
include/libxml/xmlerror.h: updated the change of namespace at
the XInclude level, raise a warning if the old one is found,
and some cleanup
Daniel
diff --git a/xmlreader.c b/xmlreader.c
index 0ce19db..bbba459 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -1364,7 +1364,8 @@
if ((reader->xinclude) && (reader->node != NULL) &&
(reader->node->type == XML_ELEMENT_NODE) &&
(reader->node->ns != NULL) &&
- (xmlStrEqual(reader->node->ns->href, XINCLUDE_NS))) {
+ ((xmlStrEqual(reader->node->ns->href, XINCLUDE_NS)) ||
+ (xmlStrEqual(reader->node->ns->href, XINCLUDE_OLD_NS)))) {
if (reader->xincctxt == NULL) {
reader->xincctxt = xmlXIncludeNewContext(reader->ctxt->myDoc);
}