diff options
Diffstat (limited to 'test/XInclude')
-rw-r--r-- | test/XInclude/docs/docids.xml | 15 | ||||
-rw-r--r-- | test/XInclude/docs/fallback.xml | 6 | ||||
-rw-r--r-- | test/XInclude/docs/fallback2.xml | 10 | ||||
-rw-r--r-- | test/XInclude/docs/include.xml | 4 | ||||
-rw-r--r-- | test/XInclude/docs/nodes.xml | 4 | ||||
-rw-r--r-- | test/XInclude/docs/nodes2.xml | 4 | ||||
-rw-r--r-- | test/XInclude/docs/nodes3.xml | 4 | ||||
-rw-r--r-- | test/XInclude/docs/recursive.xml | 3 | ||||
-rw-r--r-- | test/XInclude/docs/tstencoding.xml | 5 | ||||
-rw-r--r-- | test/XInclude/docs/txtinclude.xml | 4 | ||||
-rw-r--r-- | test/XInclude/ents/ids.xml | 10 | ||||
-rw-r--r-- | test/XInclude/ents/inc.txt | 1 | ||||
-rw-r--r-- | test/XInclude/ents/isolatin.txt | 1 | ||||
-rw-r--r-- | test/XInclude/ents/something.txt | 1 | ||||
-rw-r--r-- | test/XInclude/ents/something.xml | 5 | ||||
-rw-r--r-- | test/XInclude/ents/sub-inc.ent | 2 |
16 files changed, 79 insertions, 0 deletions
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/fallback2.xml b/test/XInclude/docs/fallback2.xml new file mode 100644 index 0000000..dac71f9 --- /dev/null +++ b/test/XInclude/docs/fallback2.xml @@ -0,0 +1,10 @@ +<a> + <xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:fallback>There is no b.xml ... </xi:fallback> + </xi:include> + <xi:include href="c.xml" xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:fallback>There is no c.xml ... </xi:fallback> + </xi:include> + +</a> + 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> diff --git a/test/XInclude/ents/ids.xml b/test/XInclude/ents/ids.xml new file mode 100644 index 0000000..8193231 --- /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> diff --git a/test/XInclude/ents/inc.txt b/test/XInclude/ents/inc.txt new file mode 100644 index 0000000..d5cdd7c --- /dev/null +++ b/test/XInclude/ents/inc.txt @@ -0,0 +1 @@ +is a test diff --git a/test/XInclude/ents/isolatin.txt b/test/XInclude/ents/isolatin.txt new file mode 100644 index 0000000..d1dbf70 --- /dev/null +++ b/test/XInclude/ents/isolatin.txt @@ -0,0 +1 @@ +test with accents in ISO-8859-1: À Á é è diff --git a/test/XInclude/ents/something.txt b/test/XInclude/ents/something.txt new file mode 100644 index 0000000..48c21b7 --- /dev/null +++ b/test/XInclude/ents/something.txt @@ -0,0 +1 @@ +this is some text in ASCII diff --git a/test/XInclude/ents/something.xml b/test/XInclude/ents/something.xml new file mode 100644 index 0000000..9bba683 --- /dev/null +++ b/test/XInclude/ents/something.xml @@ -0,0 +1,5 @@ +<doc> +<p>something</p> +<p>really</p> +<p>simple</p> +</doc> diff --git a/test/XInclude/ents/sub-inc.ent b/test/XInclude/ents/sub-inc.ent new file mode 100644 index 0000000..7726c9d --- /dev/null +++ b/test/XInclude/ents/sub-inc.ent @@ -0,0 +1,2 @@ +<sub-inc><xinc:include href="inc.txt" parse="text" + xmlns:xinc="http://www.w3.org/2001/XInclude"/></sub-inc> |