summaryrefslogtreecommitdiff
path: root/test/XInclude
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-11-12 15:56:56 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-11-12 15:56:56 +0000
commitbf43275dd1e31ee7542c37f1f7ce21e0ee9218ee (patch)
treea7922d9afb91ba81da63417c9437c126a2ad3252 /test/XInclude
parentc2def84b484f6706c2ad7d076a2f3e1c56f76b9f (diff)
downloadlibxml2-bf43275dd1e31ee7542c37f1f7ce21e0ee9218ee.tar.gz
Bug fixes new Xinclude tests:
- nanoftp.c: fixed gcc 2.95 new warnings - SAX.c: fixed a stupid bug - tree.c: fixed a formatting problem when round-tripping from/to memory - xinclude.c: chased memleak, fixed a base problem - xpointer.c: added xmlXPtrBuildRangeNodeList(), finished ? xmlXPtrBuildNodeList() - TODO: updated - Makefile.am test/XInclude/docs test/XInclude/ents result/XInclude: adding a first small set of regression tests for XInclude Daniel
Diffstat (limited to 'test/XInclude')
-rw-r--r--test/XInclude/docs/include.xml4
-rw-r--r--test/XInclude/docs/nodes.xml4
-rw-r--r--test/XInclude/docs/txtinclude.xml4
-rw-r--r--test/XInclude/ents/something.txt1
-rw-r--r--test/XInclude/ents/something.xml5
5 files changed, 18 insertions, 0 deletions
diff --git a/test/XInclude/docs/include.xml b/test/XInclude/docs/include.xml
new file mode 100644
index 00000000..5365364b
--- /dev/null
+++ b/test/XInclude/docs/include.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/1999/XML/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 00000000..df2da4ae
--- /dev/null
+++ b/test/XInclude/docs/nodes.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/1999/XML/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/txtinclude.xml b/test/XInclude/docs/txtinclude.xml
new file mode 100644
index 00000000..e8e5041b
--- /dev/null
+++ b/test/XInclude/docs/txtinclude.xml
@@ -0,0 +1,4 @@
+<x xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
+ <!-- Simple test of including another text document -->
+ <xinclude:include href="../ents/something.txt" parse="text"/>
+</x>
diff --git a/test/XInclude/ents/something.txt b/test/XInclude/ents/something.txt
new file mode 100644
index 00000000..48c21b7a
--- /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 00000000..9bba6834
--- /dev/null
+++ b/test/XInclude/ents/something.xml
@@ -0,0 +1,5 @@
+<doc>
+<p>something</p>
+<p>really</p>
+<p>simple</p>
+</doc>