diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
commit | c484829272cd13a738e35412498e12f2c9a194ac (patch) | |
tree | a1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/xml-mapped/content-namespace | |
parent | Initial commit. (diff) | |
download | liborcus-upstream/0.19.2.tar.xz liborcus-upstream/0.19.2.zip |
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/xml-mapped/content-namespace')
-rw-r--r-- | test/xml-mapped/content-namespace/check-nomap.txt | 12 | ||||
-rw-r--r-- | test/xml-mapped/content-namespace/check.txt | 13 | ||||
-rw-r--r-- | test/xml-mapped/content-namespace/input.xml | 26 | ||||
-rw-r--r-- | test/xml-mapped/content-namespace/map.xml | 12 |
4 files changed, 63 insertions, 0 deletions
diff --git a/test/xml-mapped/content-namespace/check-nomap.txt b/test/xml-mapped/content-namespace/check-nomap.txt new file mode 100644 index 0000000..dce2781 --- /dev/null +++ b/test/xml-mapped/content-namespace/check-nomap.txt @@ -0,0 +1,12 @@ +range-0/0/0:string:"ns0:city" +range-0/0/1:string:"ns0:population" +range-0/0/2:string:"ns0:year" +range-0/1/0:string:"Tokyo" +range-0/1/1:numeric:13189000 +range-0/1/2:numeric:2011 +range-0/2/0:string:"New York City" +range-0/2/1:numeric:8244910 +range-0/2/2:numeric:2011 +range-0/3/0:string:"London" +range-0/3/1:numeric:8174100 +range-0/3/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace/check.txt b/test/xml-mapped/content-namespace/check.txt new file mode 100644 index 0000000..98d2013 --- /dev/null +++ b/test/xml-mapped/content-namespace/check.txt @@ -0,0 +1,13 @@ +data/0/0:string:"Sample data" +data/2/0:string:"ns0:city" +data/2/1:string:"ns0:population" +data/2/2:string:"ns0:year" +data/3/0:string:"Tokyo" +data/3/1:numeric:13189000 +data/3/2:numeric:2011 +data/4/0:string:"New York City" +data/4/1:numeric:8244910 +data/4/2:numeric:2011 +data/5/0:string:"London" +data/5/1:numeric:8174100 +data/5/2:numeric:2011 diff --git a/test/xml-mapped/content-namespace/input.xml b/test/xml-mapped/content-namespace/input.xml new file mode 100644 index 0000000..6e3c8b8 --- /dev/null +++ b/test/xml-mapped/content-namespace/input.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<b:table xmlns:b="http://some-namespace" xmlns:skip="http://namespace-to-skip"> + <b:title>Sample data</b:title> + <b:rows> + <b:row> + <b:city>Tokyo</b:city> + <b:population>13189000</b:population> + <b:year>2011</b:year> + </b:row> + <b:row> + <b:city>New York City</b:city> + <b:population>8244910</b:population> + <b:year>2011</b:year> + </b:row> + <b:row> + <b:city>London</b:city> + <b:population>8174100</b:population> + <b:year>2011</b:year> + </b:row> + <skip:row> + <b:city>Beijing</b:city> + <b:population>20180000</b:population> + <b:year>2011</b:year> + </skip:row> + </b:rows> +</b:table> diff --git a/test/xml-mapped/content-namespace/map.xml b/test/xml-mapped/content-namespace/map.xml new file mode 100644 index 0000000..9cd4bed --- /dev/null +++ b/test/xml-mapped/content-namespace/map.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<map xmlns="http://gitorious.org/orcus/xml-map"> + <ns alias="a" uri="http://some-namespace"/> + <sheet name="data"/> + <cell path="/a:table/a:title" row="0" column="0" sheet="data"/> + <range row="2" column="0" sheet="data"> + <field path="/a:table/a:rows/a:row/a:city"/> + <field path="/a:table/a:rows/a:row/a:population"/> + <field path="/a:table/a:rows/a:row/a:year"/> + <row-group path="/a:table/a:rows/a:row"/> + </range> +</map> |