summaryrefslogtreecommitdiff
path: root/test/XInclude
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2020-08-16 23:38:48 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2020-08-17 01:17:39 +0200
commitd88df4bd48ba4ce9a68040a2427b4a665d5ff891 (patch)
tree841e57bd0791d43a448e26284afdf5b83648f145 /test/XInclude
parent00a86d414ba9a9e1cd588182b87518e4e3af9466 (diff)
downloadlibxml2-d88df4bd48ba4ce9a68040a2427b4a665d5ff891.tar.gz
Fix corner case with empty xi:fallback
xi:fallback could become empty after recursive expansion. Use a flag to track whether nodes should be skipped.
Diffstat (limited to 'test/XInclude')
-rw-r--r--test/XInclude/docs/fallback6.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/XInclude/docs/fallback6.xml b/test/XInclude/docs/fallback6.xml
new file mode 100644
index 00000000..fd00a03f
--- /dev/null
+++ b/test/XInclude/docs/fallback6.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="b.xml">
+ <xi:fallback><xi:include href="c.xml">
+ <xi:fallback/>
+ </xi:include></xi:fallback>
+</xi:include>