From 20e2fb4c1cee1a5d8236c18b96fe6a3038c9ffb5 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 23 Oct 2022 17:52:29 +0200 Subject: xinclude: Avoid creation of subcontexts Don't create subcontext in xmlXIncludeRecurseDoc. Save and restore 'doc' and 'incTab' instead. Make xmlXIncludeLoadFallback call xmlXIncludeCopyNode which seems safer than xmlXIncludeDoProcess since the latter may modify the document. This should also be more performant since we need to copy the whole fallback subtree anyway. Also make sure to avoid replacements in fallback elements in xmlXIncludeDoProcess. --- test/XInclude/without-reader/fallback7.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/XInclude/without-reader/fallback7.xml (limited to 'test') diff --git a/test/XInclude/without-reader/fallback7.xml b/test/XInclude/without-reader/fallback7.xml new file mode 100644 index 00000000..7ddf9366 --- /dev/null +++ b/test/XInclude/without-reader/fallback7.xml @@ -0,0 +1,12 @@ + + text + + + + + + + + + + -- cgit v1.2.1