summaryrefslogtreecommitdiff
path: root/test/XInclude/docs
diff options
context:
space:
mode:
Diffstat (limited to 'test/XInclude/docs')
-rw-r--r--test/XInclude/docs/.memdump4
-rw-r--r--test/XInclude/docs/docids.xml15
-rw-r--r--test/XInclude/docs/fallback.xml6
-rw-r--r--test/XInclude/docs/include.xml4
-rw-r--r--test/XInclude/docs/nodes.xml4
-rw-r--r--test/XInclude/docs/nodes2.xml4
-rw-r--r--test/XInclude/docs/nodes3.xml4
-rw-r--r--test/XInclude/docs/recursive.xml3
-rw-r--r--test/XInclude/docs/tstencoding.xml5
-rw-r--r--test/XInclude/docs/txtinclude.xml4
10 files changed, 53 insertions, 0 deletions
diff --git a/test/XInclude/docs/.memdump b/test/XInclude/docs/.memdump
new file mode 100644
index 0000000..aed5a9e
--- /dev/null
+++ b/test/XInclude/docs/.memdump
@@ -0,0 +1,4 @@
+ 11:55:34 AM
+
+ MEMORY ALLOCATED : 0, MAX was 20068
+BLOCK NUMBER SIZE TYPE
diff --git a/test/XInclude/docs/docids.xml b/test/XInclude/docs/docids.xml
new file mode 100644
index 0000000..7791620
--- /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/docs/fallback.xml b/test/XInclude/docs/fallback.xml
new file mode 100644
index 0000000..e80222e
--- /dev/null
+++ b/test/XInclude/docs/fallback.xml
@@ -0,0 +1,6 @@
+<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
+ <!-- Simple test of a fallback on unavailble URI -->
+ <xinclude:include href="something.xml">
+ <xinclude:fallback><warning>Inclusion failed</warning></xinclude:fallback>
+ </xinclude:include>
+</x>
diff --git a/test/XInclude/docs/include.xml b/test/XInclude/docs/include.xml
new file mode 100644
index 0000000..806ac23
--- /dev/null
+++ b/test/XInclude/docs/include.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
+ <!-- Simple test of including another XML document -->
+ <xinclude:include href="../ents/something.xml"/>
+</x>
diff --git a/test/XInclude/docs/nodes.xml b/test/XInclude/docs/nodes.xml
new file mode 100644
index 0000000..d0ccab9
--- /dev/null
+++ b/test/XInclude/docs/nodes.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
+ <!-- Simple test of including a set of nodes from an XML document -->
+ <xinclude:include href="../ents/something.xml#xpointer(//p)"/>
+</x>
diff --git a/test/XInclude/docs/nodes2.xml b/test/XInclude/docs/nodes2.xml
new file mode 100644
index 0000000..32f8cfe
--- /dev/null
+++ b/test/XInclude/docs/nodes2.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/2003/XInclude">
+ <!-- Simple test of including a set of nodes from an XML document -->
+ <xinclude:include href="../ents/something.xml" xpointer="xpointer(//p)"/>
+</x>
diff --git a/test/XInclude/docs/nodes3.xml b/test/XInclude/docs/nodes3.xml
new file mode 100644
index 0000000..355c548
--- /dev/null
+++ b/test/XInclude/docs/nodes3.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/2003/XInclude">
+ <!-- Simple test of including a set of nodes from an XML document -->
+ <xinclude:include href="../ents/something.xml#xpointer(//p)"/>
+</x>
diff --git a/test/XInclude/docs/recursive.xml b/test/XInclude/docs/recursive.xml
new file mode 100644
index 0000000..a9285ac
--- /dev/null
+++ b/test/XInclude/docs/recursive.xml
@@ -0,0 +1,3 @@
+<this><xinc:include href="../ents/sub-inc.ent" parse="xml"
+ xmlns:xinc="http://www.w3.org/2001/XInclude"/></this>
+
diff --git a/test/XInclude/docs/tstencoding.xml b/test/XInclude/docs/tstencoding.xml
new file mode 100644
index 0000000..b1309a9
--- /dev/null
+++ b/test/XInclude/docs/tstencoding.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
+ <!-- Simple test of including another text document -->
+ <xinclude:include href="../ents/isolatin.txt" encoding="ISO-8859-1" parse="text"/>
+</x>
diff --git a/test/XInclude/docs/txtinclude.xml b/test/XInclude/docs/txtinclude.xml
new file mode 100644
index 0000000..f1af6a2
--- /dev/null
+++ b/test/XInclude/docs/txtinclude.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
+ <!-- Simple test of including another text document -->
+ <xinclude:include href="../ents/something.txt" parse="text"/>
+</x>