modified to make sub-includes inherit the parse flags from the parent
* xinclude.c: modified to make sub-includes inherit the
parse flags from the parent document (bug 132597)
diff --git a/xinclude.c b/xinclude.c
index 9247632..629c850 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -694,6 +694,11 @@
newctxt->incTab[i]->count++; /* prevent the recursion from
freeing it */
}
+ /*
+ * The new context should also inherit the Parse Flags
+ * (bug 132597)
+ */
+ newctxt->parseFlags = ctxt->parseFlags;
xmlXIncludeDoProcess(newctxt, doc, xmlDocGetRootElement(doc));
for (i = 0;i < ctxt->incNr;i++) {
newctxt->incTab[i]->count--;