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/custom-labels-2 | |
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/custom-labels-2')
-rw-r--r-- | test/xml-mapped/custom-labels-2/check.txt | 12 | ||||
-rw-r--r-- | test/xml-mapped/custom-labels-2/input.xml | 8 | ||||
-rw-r--r-- | test/xml-mapped/custom-labels-2/map.xml | 12 |
3 files changed, 32 insertions, 0 deletions
diff --git a/test/xml-mapped/custom-labels-2/check.txt b/test/xml-mapped/custom-labels-2/check.txt new file mode 100644 index 0000000..829dc2e --- /dev/null +++ b/test/xml-mapped/custom-labels-2/check.txt @@ -0,0 +1,12 @@ +data/1/1:string:"Date Received" +data/1/2:string:"Date Processed" +data/1/3:string:"Received by" +data/2/1:string:"2011-01-01" +data/2/2:string:"2011-01-03" +data/2/3:string:"JKB" +data/3/1:string:"2011-01-01" +data/3/2:string:"2011-01-04" +data/3/3:string:"CJ" +data/4/1:string:"2011-12-23" +data/4/2:string:"2012-01-01" +data/4/3:string:"KY" diff --git a/test/xml-mapped/custom-labels-2/input.xml b/test/xml-mapped/custom-labels-2/input.xml new file mode 100644 index 0000000..4a29806 --- /dev/null +++ b/test/xml-mapped/custom-labels-2/input.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<a:data xmlns:a="http://ns-1" xmlns:b="http://ns-2"> + <b:entries> + <b:entry b:date-received="2011-01-01" b:date-processed="2011-01-03" b:received-by="JKB"/> + <b:entry b:date-received="2011-01-01" b:date-processed="2011-01-04" b:received-by="CJ"/> + <b:entry b:date-received="2011-12-23" b:date-processed="2012-01-01" b:received-by="KY"/> + </b:entries> +</a:data> diff --git a/test/xml-mapped/custom-labels-2/map.xml b/test/xml-mapped/custom-labels-2/map.xml new file mode 100644 index 0000000..3dcdf47 --- /dev/null +++ b/test/xml-mapped/custom-labels-2/map.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<map xmlns="http://gitorious.org/orcus/xml-map"> + <ns alias="x" uri="http://ns-1"/> + <ns alias="y" uri="http://ns-2" default="true"/> + <sheet name="data"/> + <range row="1" column="1" sheet="data"> + <field path="/x:data/entries/entry/@date-received" label="Date Received"/> + <field path="/x:data/entries/entry/@date-processed" label="Date Processed"/> + <field path="/x:data/entries/entry/@received-by" label="Received by"/> + <row-group path="/x:data/entries/entry"/> + </range> +</map> |