1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

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)
This commit is contained in:
William M. Brack 2004-03-07 11:03:43 +00:00
parent ebcdebd638
commit a11e483e8a
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 7 19:03:48 HKT 2004 William Brack <wbrack@mmm.com.hk>
* xinclude.c: modified to make sub-includes inherit the
parse flags from the parent document (bug 132597)
Fri Mar 5 01:13:22 CET 2004 Daniel Veillard <daniel@veillard.com>
* xmlschemas.c: QName handling fixes for the XML Schemas

View File

@ -694,6 +694,11 @@ xmlXIncludeRecurseDoc(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc,
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--;