diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 21:10:17 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-11-17 21:10:17 (GMT) |
commit | 574585fa78070b0cc6b5ad22543e21a3502a122b (patch) | |
tree | 0e96ee0e38f68bcd7662e7815f96e0151740056f /test/XInclude/docs | |
download | blt-574585fa78070b0cc6b5ad22543e21a3502a122b.zip blt-574585fa78070b0cc6b5ad22543e21a3502a122b.tar.gz blt-574585fa78070b0cc6b5ad22543e21a3502a122b.tar.bz2 |
Squashed 'libxml2/' content from commit d9321d2
git-subtree-dir: libxml2
git-subtree-split: d9321d23d75a97f655f9325007ea7837f101100f
Diffstat (limited to 'test/XInclude/docs')
-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 |
10 files changed, 59 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> |