mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
anothe XInclude user data propagation patch from Michael Day Daniel
* xinclude.c: anothe XInclude user data propagation patch from Michael Day Daniel
This commit is contained in:
parent
1032ac4c5c
commit
a658582e1a
@ -1,3 +1,8 @@
|
||||
Mon Dec 4 10:27:01 CET 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xinclude.c: anothe XInclude user data propagation patch from
|
||||
Michael Day
|
||||
|
||||
Thu Nov 23 17:22:03 CET 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* HTMLparser.c: applied patch from Steven Rainwater to fix
|
||||
|
@ -672,6 +672,10 @@ xmlXIncludeRecurseDoc(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc,
|
||||
|
||||
newctxt = xmlXIncludeNewContext(doc);
|
||||
if (newctxt != NULL) {
|
||||
/*
|
||||
* Copy the private user data
|
||||
*/
|
||||
newctxt->_private = ctxt->_private;
|
||||
/*
|
||||
* Copy the existing document set
|
||||
*/
|
||||
@ -1930,6 +1934,7 @@ xmlXIncludeLoadFallback(xmlXIncludeCtxtPtr ctxt, xmlNodePtr fallback, int nr) {
|
||||
newctxt = xmlXIncludeNewContext(ctxt->doc);
|
||||
if (newctxt == NULL)
|
||||
return (-1);
|
||||
newctxt->_private = ctxt->_private;
|
||||
newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */
|
||||
xmlXIncludeSetFlags(newctxt, ctxt->parseFlags);
|
||||
ret = xmlXIncludeDoProcess(newctxt, ctxt->doc, fallback->children);
|
||||
|
Loading…
Reference in New Issue
Block a user