diff options
Diffstat (limited to 'libxml2/test/scripts')
-rw-r--r-- | libxml2/test/scripts/base.script | 7 | ||||
-rw-r--r-- | libxml2/test/scripts/base.xml | 7 | ||||
-rw-r--r-- | libxml2/test/scripts/base2.script | 7 | ||||
-rw-r--r-- | libxml2/test/scripts/base2.xml | 7 | ||||
-rw-r--r-- | libxml2/test/scripts/set1.script | 2 | ||||
-rw-r--r-- | libxml2/test/scripts/set1.xml | 1 | ||||
-rw-r--r-- | libxml2/test/scripts/set3.script | 5 | ||||
-rw-r--r-- | libxml2/test/scripts/set3.xml | 1 | ||||
-rw-r--r-- | libxml2/test/scripts/set4.script | 4 | ||||
-rw-r--r-- | libxml2/test/scripts/set4.xml | 1 |
10 files changed, 42 insertions, 0 deletions
diff --git a/libxml2/test/scripts/base.script b/libxml2/test/scripts/base.script new file mode 100644 index 0000000..1fc3f57 --- /dev/null +++ b/libxml2/test/scripts/base.script @@ -0,0 +1,7 @@ +base +cd //e +base +cd .//img +base +exit + diff --git a/libxml2/test/scripts/base.xml b/libxml2/test/scripts/base.xml new file mode 100644 index 0000000..81f71cb --- /dev/null +++ b/libxml2/test/scripts/base.xml @@ -0,0 +1,7 @@ +<doc> + <e xml:base="http://example.com/base/"> + <images xml:base="images/"> + <img href="img1.gif"/> + </images> + </e> +</doc> diff --git a/libxml2/test/scripts/base2.script b/libxml2/test/scripts/base2.script new file mode 100644 index 0000000..1fc3f57 --- /dev/null +++ b/libxml2/test/scripts/base2.script @@ -0,0 +1,7 @@ +base +cd //e +base +cd .//img +base +exit + diff --git a/libxml2/test/scripts/base2.xml b/libxml2/test/scripts/base2.xml new file mode 100644 index 0000000..0e92a10 --- /dev/null +++ b/libxml2/test/scripts/base2.xml @@ -0,0 +1,7 @@ +<doc> + <e xml:base="html/"> + <images xml:base="../images/"> + <img href="img1.gif"/> + </images> + </e> +</doc> diff --git a/libxml2/test/scripts/set1.script b/libxml2/test/scripts/set1.script new file mode 100644 index 0000000..e9a3e69 --- /dev/null +++ b/libxml2/test/scripts/set1.script @@ -0,0 +1,2 @@ +set <b/> +save - diff --git a/libxml2/test/scripts/set1.xml b/libxml2/test/scripts/set1.xml new file mode 100644 index 0000000..dcd0694 --- /dev/null +++ b/libxml2/test/scripts/set1.xml @@ -0,0 +1 @@ +<a>foo</a> diff --git a/libxml2/test/scripts/set3.script b/libxml2/test/scripts/set3.script new file mode 100644 index 0000000..e99745a --- /dev/null +++ b/libxml2/test/scripts/set3.script @@ -0,0 +1,5 @@ +cd * +xpath //*[namespace-uri()="bar"] +set <b/> +xpath //*[namespace-uri()="bar"] +save - diff --git a/libxml2/test/scripts/set3.xml b/libxml2/test/scripts/set3.xml new file mode 100644 index 0000000..211b4e5 --- /dev/null +++ b/libxml2/test/scripts/set3.xml @@ -0,0 +1 @@ +<a xmlns="bar">foo</a> diff --git a/libxml2/test/scripts/set4.script b/libxml2/test/scripts/set4.script new file mode 100644 index 0000000..39d64cb --- /dev/null +++ b/libxml2/test/scripts/set4.script @@ -0,0 +1,4 @@ +cd a/b +set <a:c/> +xpath //*[namespace-uri()="foo"] +save - diff --git a/libxml2/test/scripts/set4.xml b/libxml2/test/scripts/set4.xml new file mode 100644 index 0000000..1ba4401 --- /dev/null +++ b/libxml2/test/scripts/set4.xml @@ -0,0 +1 @@ +<a xmlns:a="bar"><b xmlns:a="foo"/></a> |