summaryrefslogtreecommitdiff
path: root/result
diff options
context:
space:
mode:
authorAleksey Sanin <aleksey@aleksey.com>2009-07-09 10:26:22 +0200
committerDaniel Veillard <veillard@redhat.com>2009-07-09 10:26:22 +0200
commit838682478cf89ddcbda294d9557c72813135fc7a (patch)
treebeb96f53231fbd3952e611b695e7f2690715e0ad /result
parent44af232c837312900f7d5c0ad58c2d52cdc8aa8f (diff)
downloadlibxml2-838682478cf89ddcbda294d9557c72813135fc7a.tar.gz
Aleksey Sanin support for c14n 1.1
* c14n.c include/libxml/c14n.h: adds support for C14N 1.1, new flags at the API level * runtest.c Makefile.am testC14N.c xmllint.c: add support in CLI tools and test binaries * result/c14n/1-1-without-comments/* test/c14n/1-1-without-comments/*: add a new batch of tests
Diffstat (limited to 'result')
-rwxr-xr-xresult/c14n/1-1-without-comments/example-14
-rwxr-xr-xresult/c14n/1-1-without-comments/example-211
-rwxr-xr-xresult/c14n/1-1-without-comments/example-314
-rwxr-xr-xresult/c14n/1-1-without-comments/example-49
-rwxr-xr-xresult/c14n/1-1-without-comments/example-53
-rwxr-xr-xresult/c14n/1-1-without-comments/example-61
-rwxr-xr-xresult/c14n/1-1-without-comments/example-71
-rwxr-xr-xresult/c14n/1-1-without-comments/example-81
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-c14n11spec-1021
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-c14n11spec2-1021
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-c14n11spec3-1022
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-114
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-28
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-33
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-41
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-51
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-63
-rw-r--r--result/c14n/1-1-without-comments/xmlbase-prop-77
-rw-r--r--result/c14n/1-1-without-comments/xmlid-prop-18
-rw-r--r--result/c14n/1-1-without-comments/xmlid-prop-25
-rw-r--r--result/c14n/1-1-without-comments/xmllang-prop-18
-rw-r--r--result/c14n/1-1-without-comments/xmllang-prop-23
-rw-r--r--result/c14n/1-1-without-comments/xmllang-prop-33
-rw-r--r--result/c14n/1-1-without-comments/xmllang-prop-45
-rw-r--r--result/c14n/1-1-without-comments/xmlspace-prop-18
-rw-r--r--result/c14n/1-1-without-comments/xmlspace-prop-23
-rw-r--r--result/c14n/1-1-without-comments/xmlspace-prop-33
-rw-r--r--result/c14n/1-1-without-comments/xmlspace-prop-45
28 files changed, 136 insertions, 0 deletions
diff --git a/result/c14n/1-1-without-comments/example-1 b/result/c14n/1-1-without-comments/example-1
new file mode 100755
index 00000000..af9a9770
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-1
@@ -0,0 +1,4 @@
+<?xml-stylesheet href="doc.xsl"
+ type="text/xsl" ?>
+<doc>Hello, world!</doc>
+<?pi-without-data?> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-2 b/result/c14n/1-1-without-comments/example-2
new file mode 100755
index 00000000..2afa15cc
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-2
@@ -0,0 +1,11 @@
+<doc>
+ <clean> </clean>
+ <dirty> A B </dirty>
+ <mixed>
+ A
+ <clean> </clean>
+ B
+ <dirty> A B </dirty>
+ C
+ </mixed>
+</doc> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-3 b/result/c14n/1-1-without-comments/example-3
new file mode 100755
index 00000000..4c287e6e
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-3
@@ -0,0 +1,14 @@
+<doc>
+ <e1></e1>
+ <e2></e2>
+ <e3 id="elem3" name="elem3"></e3>
+ <e4 id="elem4" name="elem4"></e4>
+ <e5 xmlns="http://www.uvic.ca" xmlns:a="http://www.w3.org" xmlns:b="http://www.ietf.org" attr="I'm" attr2="all" b:attr="sorted" a:attr="out"></e5>
+ <e6 xmlns:a="http://www.w3.org">
+ <e7 xmlns="http://www.ietf.org">
+ <e8 xmlns="">
+ <e9 xmlns:a="http://www.ietf.org" attr="default"></e9>
+ </e8>
+ </e7>
+ </e6>
+</doc> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-4 b/result/c14n/1-1-without-comments/example-4
new file mode 100755
index 00000000..19a25592
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-4
@@ -0,0 +1,9 @@
+<doc>
+ <text>First line&#xD;
+Second line</text>
+ <value>2</value>
+ <compute>value&gt;"0" &amp;&amp; value&lt;"10" ?"valid":"error"</compute>
+ <compute expr="value>&quot;0&quot; &amp;&amp; value&lt;&quot;10&quot; ?&quot;valid&quot;:&quot;error&quot;">valid</compute>
+ <norm attr=" ' &#xD;&#xA;&#x9; ' "></norm>
+ <normId id="' &#xD;&#xA;&#x9; '"></normId>
+</doc> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-5 b/result/c14n/1-1-without-comments/example-5
new file mode 100755
index 00000000..c232e740
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-5
@@ -0,0 +1,3 @@
+<doc attrExtEnt="entExt">
+ Hello, world!
+</doc> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-6 b/result/c14n/1-1-without-comments/example-6
new file mode 100755
index 00000000..0be38f98
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-6
@@ -0,0 +1 @@
+<doc>©</doc> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-7 b/result/c14n/1-1-without-comments/example-7
new file mode 100755
index 00000000..0a96cc4d
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-7
@@ -0,0 +1 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" id="E3" xml:space="preserve"></e3></e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/example-8 b/result/c14n/1-1-without-comments/example-8
new file mode 100755
index 00000000..eb830e81
--- /dev/null
+++ b/result/c14n/1-1-without-comments/example-8
@@ -0,0 +1 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="something/else"><e3 xmlns="" id="E3" xml:base="bar/foo" xml:space="preserve"></e3></e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-c14n11spec-102 b/result/c14n/1-1-without-comments/xmlbase-c14n11spec-102
new file mode 100644
index 00000000..421d60bf
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-c14n11spec-102
@@ -0,0 +1 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://www.example.com/something/else"><e3 xmlns="" id="E3" xml:base="../bar/foo" xml:space="preserve"></e3></e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-c14n11spec2-102 b/result/c14n/1-1-without-comments/xmlbase-c14n11spec2-102
new file mode 100644
index 00000000..eb830e81
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-c14n11spec2-102
@@ -0,0 +1 @@
+<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="something/else"><e3 xmlns="" id="E3" xml:base="bar/foo" xml:space="preserve"></e3></e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-c14n11spec3-102 b/result/c14n/1-1-without-comments/xmlbase-c14n11spec3-102
new file mode 100644
index 00000000..77ef8481
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-c14n11spec3-102
@@ -0,0 +1,2 @@
+<a xml:base="foo/bar"><d xml:base="../../x">
+ </d></a> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-1 b/result/c14n/1-1-without-comments/xmlbase-prop-1
new file mode 100644
index 00000000..da3a2b66
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-1
@@ -0,0 +1,14 @@
+<ietf:c14n11XmlBaseDoc1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase0/">
+ <ietf:e1 xml:base="/xmlbase1/">
+ <ietf:e11 xml:base="/xmlbase11/">
+ <ietf:e111 xml:base="/xmlbase111/"></ietf:e111>
+ </ietf:e11>
+ <ietf:e12 at="2">
+ <ietf:e121 xml:base="/xmlbase121/"></ietf:e121>
+ </ietf:e12>
+ </ietf:e1>
+
+ <ietf:e3>
+ <ietf:e31 at="3"></ietf:e31>
+ </ietf:e3>
+</ietf:c14n11XmlBaseDoc1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-2 b/result/c14n/1-1-without-comments/xmlbase-prop-2
new file mode 100644
index 00000000..aefa8110
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-2
@@ -0,0 +1,8 @@
+<ietf:e1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase1/">
+ <ietf:e11 xml:base="/xmlbase11/">
+ <ietf:e111 xml:base="/xmlbase111/"></ietf:e111>
+ </ietf:e11>
+ <ietf:e12 at="2">
+ <ietf:e121 xml:base="/xmlbase121/"></ietf:e121>
+ </ietf:e12>
+ </ietf:e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-3 b/result/c14n/1-1-without-comments/xmlbase-prop-3
new file mode 100644
index 00000000..0757d281
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-3
@@ -0,0 +1,3 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase11/">
+ <ietf:e111 xml:base="/xmlbase111/"></ietf:e111>
+ </ietf:e11> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-4 b/result/c14n/1-1-without-comments/xmlbase-prop-4
new file mode 100644
index 00000000..0d45839d
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-4
@@ -0,0 +1 @@
+<ietf:e111 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase111/"></ietf:e111> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-5 b/result/c14n/1-1-without-comments/xmlbase-prop-5
new file mode 100644
index 00000000..95e51d9f
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-5
@@ -0,0 +1 @@
+<ietf:e21 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase21/"></ietf:e21> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-6 b/result/c14n/1-1-without-comments/xmlbase-prop-6
new file mode 100644
index 00000000..a7b61e30
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-6
@@ -0,0 +1,3 @@
+<ietf:e3 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase0/">
+ <ietf:e31 at="3"></ietf:e31>
+ </ietf:e3> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlbase-prop-7 b/result/c14n/1-1-without-comments/xmlbase-prop-7
new file mode 100644
index 00000000..eda3165c
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlbase-prop-7
@@ -0,0 +1,7 @@
+<ietf:c14n11XmlBaseDoc1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:base="http://xmlbase.example.org/xmlbase0/">
+
+
+ <ietf:e3>
+ <ietf:e31 at="3"></ietf:e31>
+ </ietf:e3>
+</ietf:c14n11XmlBaseDoc1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlid-prop-1 b/result/c14n/1-1-without-comments/xmlid-prop-1
new file mode 100644
index 00000000..2a76c06a
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlid-prop-1
@@ -0,0 +1,8 @@
+<ietf:e1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:id="IdInterop">
+ <ietf:e11>
+ <ietf:e111></ietf:e111>
+ </ietf:e11>
+ <ietf:e12 at="2">
+ <ietf:e121></ietf:e121>
+ </ietf:e12>
+ </ietf:e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlid-prop-2 b/result/c14n/1-1-without-comments/xmlid-prop-2
new file mode 100644
index 00000000..1dccb8dc
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlid-prop-2
@@ -0,0 +1,5 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
+ <ietf:e111></ietf:e111>
+ </ietf:e11><ietf:e12 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" at="2">
+ <ietf:e121></ietf:e121>
+ </ietf:e12> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmllang-prop-1 b/result/c14n/1-1-without-comments/xmllang-prop-1
new file mode 100644
index 00000000..2581a9d9
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmllang-prop-1
@@ -0,0 +1,8 @@
+<ietf:e1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:lang="EN">
+ <ietf:e11>
+ <ietf:e111></ietf:e111>
+ </ietf:e11>
+ <ietf:e12 at="2">
+ <ietf:e121></ietf:e121>
+ </ietf:e12>
+ </ietf:e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmllang-prop-2 b/result/c14n/1-1-without-comments/xmllang-prop-2
new file mode 100644
index 00000000..5add5fab
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmllang-prop-2
@@ -0,0 +1,3 @@
+<ietf:e2 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
+ <ietf:e21></ietf:e21>
+ </ietf:e2> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmllang-prop-3 b/result/c14n/1-1-without-comments/xmllang-prop-3
new file mode 100644
index 00000000..e327ebd9
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmllang-prop-3
@@ -0,0 +1,3 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:lang="EN">
+ <ietf:e111></ietf:e111>
+ </ietf:e11> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmllang-prop-4 b/result/c14n/1-1-without-comments/xmllang-prop-4
new file mode 100644
index 00000000..dc192c92
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmllang-prop-4
@@ -0,0 +1,5 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:lang="EN">
+ <ietf:e111></ietf:e111>
+ </ietf:e11><ietf:e12 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" at="2" xml:lang="EN">
+ <ietf:e121></ietf:e121>
+ </ietf:e12> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlspace-prop-1 b/result/c14n/1-1-without-comments/xmlspace-prop-1
new file mode 100644
index 00000000..7c13accd
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlspace-prop-1
@@ -0,0 +1,8 @@
+<ietf:e1 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:space="true">
+ <ietf:e11>
+ <ietf:e111></ietf:e111>
+ </ietf:e11>
+ <ietf:e12 at="2">
+ <ietf:e121></ietf:e121>
+ </ietf:e12>
+ </ietf:e1> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlspace-prop-2 b/result/c14n/1-1-without-comments/xmlspace-prop-2
new file mode 100644
index 00000000..5add5fab
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlspace-prop-2
@@ -0,0 +1,3 @@
+<ietf:e2 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
+ <ietf:e21></ietf:e21>
+ </ietf:e2> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlspace-prop-3 b/result/c14n/1-1-without-comments/xmlspace-prop-3
new file mode 100644
index 00000000..94a1a562
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlspace-prop-3
@@ -0,0 +1,3 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:space="true">
+ <ietf:e111></ietf:e111>
+ </ietf:e11> \ No newline at end of file
diff --git a/result/c14n/1-1-without-comments/xmlspace-prop-4 b/result/c14n/1-1-without-comments/xmlspace-prop-4
new file mode 100644
index 00000000..acbddd4d
--- /dev/null
+++ b/result/c14n/1-1-without-comments/xmlspace-prop-4
@@ -0,0 +1,5 @@
+<ietf:e11 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" xml:space="true">
+ <ietf:e111></ietf:e111>
+ </ietf:e11><ietf:e12 xmlns:ietf="http://www.ietf.org" xmlns:w3c="http://www.w3.org" at="2" xml:space="true">
+ <ietf:e121></ietf:e121>
+ </ietf:e12> \ No newline at end of file