diff options
Diffstat (limited to 'test/xml-mapped/custom-labels')
-rw-r--r-- | test/xml-mapped/custom-labels/check.txt | 27 | ||||
-rw-r--r-- | test/xml-mapped/custom-labels/input.xml | 27 | ||||
-rw-r--r-- | test/xml-mapped/custom-labels/map.xml | 14 |
3 files changed, 68 insertions, 0 deletions
diff --git a/test/xml-mapped/custom-labels/check.txt b/test/xml-mapped/custom-labels/check.txt new file mode 100644 index 0000000..d1ebce5 --- /dev/null +++ b/test/xml-mapped/custom-labels/check.txt @@ -0,0 +1,27 @@ +data/0/0:string:"TOP SECRET" +data/1/0:string:"Simple Data File" +data/1/2:string:"2012-08-12" +data/3/0:string:"ID" +data/3/1:string:"First Name" +data/3/2:string:"Last Name" +data/3/3:string:"Test Score" +data/4/0:numeric:1 +data/4/1:string:"Bill" +data/4/2:string:"Clinton" +data/4/3:numeric:456 +data/5/0:numeric:2 +data/5/1:string:"David" +data/5/2:string:"Cameron" +data/5/3:numeric:323 +data/6/0:numeric:3 +data/6/1:string:"Barak" +data/6/2:string:"Obama" +data/6/3:numeric:234 +data/7/0:numeric:4 +data/7/1:string:"Yoshihiko" +data/7/2:string:"Noda" +data/7/3:numeric:192 +data/8/0:numeric:5 +data/8/1:string:"Angela" +data/8/2:string:"Merkel" +data/8/3:numeric:210 diff --git a/test/xml-mapped/custom-labels/input.xml b/test/xml-mapped/custom-labels/input.xml new file mode 100644 index 0000000..f6d4abc --- /dev/null +++ b/test/xml-mapped/custom-labels/input.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<data> + <label>TOP SECRET</label> + <header> + <title>Simple Data File</title> + </header> + <entries> + <entry> + <id>1</id><name><first>Bill</first><last>Clinton</last></name><score>456</score> + </entry> + <entry> + <id>2</id><name><first>David</first><last>Cameron</last></name><score>323</score> + </entry> + <entry> + <id>3</id><name><first>Barak</first><last>Obama</last></name><score>234</score> + </entry> + <entry> + <id>4</id><name><first>Yoshihiko</first><last>Noda</last></name><score>192</score> + </entry> + <entry> + <id>5</id><name><first>Angela</first><last>Merkel</last></name><score>210</score> + </entry> + </entries> + <footer> + <date>2012-08-12</date> + </footer> +</data> diff --git a/test/xml-mapped/custom-labels/map.xml b/test/xml-mapped/custom-labels/map.xml new file mode 100644 index 0000000..0a7b64e --- /dev/null +++ b/test/xml-mapped/custom-labels/map.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<map xmlns="https://gitlab.com/orcus/orcus"> + <sheet name="data"/> + <cell path="/data/label" row="0" column="0" sheet="data"/> + <cell path="/data/header/title" row="1" column="0" sheet="data"/> + <cell path="/data/footer/date" row="1" column="2" sheet="data"/> + <range row="3" column="0" sheet="data"> + <field path="/data/entries/entry/id" label="ID"/> + <field path="/data/entries/entry/name/first" label="First Name"/> + <field path="/data/entries/entry/name/last" label="Last Name"/> + <field path="/data/entries/entry/score" label="Test Score"/> + <row-group path="/data/entries/entry"/> + </range> +</map> |