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/nested-repeats-2 | |
parent | Initial commit. (diff) | |
download | liborcus-c484829272cd13a738e35412498e12f2c9a194ac.tar.xz liborcus-c484829272cd13a738e35412498e12f2c9a194ac.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/nested-repeats-2')
-rw-r--r-- | test/xml-mapped/nested-repeats-2/check-nomap.txt | 31 | ||||
-rw-r--r-- | test/xml-mapped/nested-repeats-2/check.txt | 31 | ||||
-rw-r--r-- | test/xml-mapped/nested-repeats-2/input.xml | 21 | ||||
-rw-r--r-- | test/xml-mapped/nested-repeats-2/map.xml | 12 |
4 files changed, 95 insertions, 0 deletions
diff --git a/test/xml-mapped/nested-repeats-2/check-nomap.txt b/test/xml-mapped/nested-repeats-2/check-nomap.txt new file mode 100644 index 0000000..029c983 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/check-nomap.txt @@ -0,0 +1,31 @@ +range-0/0/0:string:"name" +range-0/0/1:string:"id" +range-0/0/2:string:"ref" +range-0/1/0:string:"foo" +range-0/1/1:string:"A" +range-0/1/2:numeric:123456789 +range-0/2/0:string:"foo" +range-0/2/1:string:"A" +range-0/2/2:numeric:987654321 +range-0/3/0:string:"foo" +range-0/3/1:string:"B" +range-0/3/2:numeric:1 +range-0/4/0:string:"foo" +range-0/4/1:string:"B" +range-0/4/2:numeric:2 +range-0/5/0:string:"foo" +range-0/5/1:string:"B" +range-0/5/2:numeric:3 +range-0/6/0:string:"foo" +range-0/6/1:string:"C" +range-0/6/2:numeric:1.1 +range-0/7/0:string:"foo" +range-0/7/1:string:"C" +range-0/7/2:numeric:2.2 +range-0/8/0:string:"foo" +range-0/8/1:string:"C" +range-0/8/2:numeric:3.3 +range-0/9/0:string:"foo" +range-0/9/1:string:"C" +range-0/9/2:numeric:4.4 +range-0/10/0:string:"bah" diff --git a/test/xml-mapped/nested-repeats-2/check.txt b/test/xml-mapped/nested-repeats-2/check.txt new file mode 100644 index 0000000..adbe04a --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/check.txt @@ -0,0 +1,31 @@ +data/0/0:string:"name" +data/0/1:string:"id" +data/0/2:string:"ref" +data/1/0:string:"foo" +data/1/1:string:"A" +data/1/2:numeric:123456789 +data/2/0:string:"foo" +data/2/1:string:"A" +data/2/2:numeric:987654321 +data/3/0:string:"foo" +data/3/1:string:"B" +data/3/2:numeric:1 +data/4/0:string:"foo" +data/4/1:string:"B" +data/4/2:numeric:2 +data/5/0:string:"foo" +data/5/1:string:"B" +data/5/2:numeric:3 +data/6/0:string:"foo" +data/6/1:string:"C" +data/6/2:numeric:1.1 +data/7/0:string:"foo" +data/7/1:string:"C" +data/7/2:numeric:2.2 +data/8/0:string:"foo" +data/8/1:string:"C" +data/8/2:numeric:3.3 +data/9/0:string:"foo" +data/9/1:string:"C" +data/9/2:numeric:4.4 +data/10/0:string:"bah" diff --git a/test/xml-mapped/nested-repeats-2/input.xml b/test/xml-mapped/nested-repeats-2/input.xml new file mode 100644 index 0000000..325dc82 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/input.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<osm version="0.6"> + <parent name="foo"> + <way id="A"> + <nd ref="123456789"/> + <nd ref="987654321"/> + </way> + <way id="B"> + <nd ref="1"/> + <nd ref="2"/> + <nd ref="3"/> + </way> + <way id="C"> + <nd ref="1.1"/> + <nd ref="2.2"/> + <nd ref="3.3"/> + <nd ref="4.4"/> + </way> + </parent> + <parent name="bah"/> +</osm> diff --git a/test/xml-mapped/nested-repeats-2/map.xml b/test/xml-mapped/nested-repeats-2/map.xml new file mode 100644 index 0000000..3a03807 --- /dev/null +++ b/test/xml-mapped/nested-repeats-2/map.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<map xmlns="http://gitorious.org/orcus/xml-map"> + <sheet name="data"/> + <range row="0" column="0" sheet="data"> + <field path="/osm/parent/@name"/> + <field path="/osm/parent/way/@id"/> + <field path="/osm/parent/way/nd/@ref"/> + <row-group path="/osm/parent"/> + <row-group path="/osm/parent/way"/> + <row-group path="/osm/parent/way/nd"/> + </range> +</map> |