summaryrefslogtreecommitdiff
path: root/test/XInclude
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-10 11:57:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-10 11:57:22 +0000
commitc5f05ada4014d6b22266c0ba6f8b72e0979c2383 (patch)
treee57e9c49cc3a834aa52c18dd1ed8531dfd3cf61a /test/XInclude
parent1c18e30b46f5cb994805aba3e2569169a223ed09 (diff)
downloadlibxml2-c5f05ada4014d6b22266c0ba6f8b72e0979c2383.tar.gz
fix #68882, cleanup the XInclude copying of node, merge back IDs in the
* tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude copying of node, merge back IDs in the target document. * result/XInclude/docids.xml test/XInclude/docs/docids.xml test/XInclude/ents/ids.xml: test case * result/VC/ElementValid4: output changed due to a typo fix Daniel
Diffstat (limited to 'test/XInclude')
-rw-r--r--test/XInclude/docs/docids.xml15
-rw-r--r--test/XInclude/ents/ids.xml10
2 files changed, 25 insertions, 0 deletions
diff --git a/test/XInclude/docs/docids.xml b/test/XInclude/docs/docids.xml
new file mode 100644
index 00000000..77916202
--- /dev/null
+++ b/test/XInclude/docs/docids.xml
@@ -0,0 +1,15 @@
+<!DOCTYPE book [
+<!ELEMENT book (doc*)>
+<!ELEMENT doc (isid*)>
+<!ELEMENT isid EMPTY>
+<!ATTLIST isid myid ID #IMPLIED>
+]>
+<book>
+<doc>
+<isid myid="mine"/>
+<isid myid="dup"/>
+</doc>
+<!-- including another XML document with IDs -->
+<xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude"
+ href="../ents/ids.xml"/>
+</book>
diff --git a/test/XInclude/ents/ids.xml b/test/XInclude/ents/ids.xml
new file mode 100644
index 00000000..81932317
--- /dev/null
+++ b/test/XInclude/ents/ids.xml
@@ -0,0 +1,10 @@
+<!DOCTYPE doc [
+<!ELEMENT doc (isid*)>
+<!ELEMENT isid EMPTY>
+<!ATTLIST isid myid ID #IMPLIED>
+]>
+<doc>
+<isid myid="dup"/>
+<isid myid="foo"/>
+<isid myid="bar"/>
+</doc>