summaryrefslogtreecommitdiffstats
path: root/test/xml-mapped/attribute-single-element
diff options
context:
space:
mode:
Diffstat (limited to 'test/xml-mapped/attribute-single-element')
-rw-r--r--test/xml-mapped/attribute-single-element/check.txt2
-rw-r--r--test/xml-mapped/attribute-single-element/input.xml2
-rw-r--r--test/xml-mapped/attribute-single-element/map.xml6
3 files changed, 10 insertions, 0 deletions
diff --git a/test/xml-mapped/attribute-single-element/check.txt b/test/xml-mapped/attribute-single-element/check.txt
new file mode 100644
index 0000000..8a0ff58
--- /dev/null
+++ b/test/xml-mapped/attribute-single-element/check.txt
@@ -0,0 +1,2 @@
+data/2/3:numeric:1.1
+data/2/4:string:"2012-09-30"
diff --git a/test/xml-mapped/attribute-single-element/input.xml b/test/xml-mapped/attribute-single-element/input.xml
new file mode 100644
index 0000000..dd24486
--- /dev/null
+++ b/test/xml-mapped/attribute-single-element/input.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<root-only version="1.1" date="2012-09-30"/>
diff --git a/test/xml-mapped/attribute-single-element/map.xml b/test/xml-mapped/attribute-single-element/map.xml
new file mode 100644
index 0000000..0ba42ff
--- /dev/null
+++ b/test/xml-mapped/attribute-single-element/map.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<map xmlns="http://gitorious.org/orcus/xml-map">
+ <sheet name="data"/>
+ <cell path="/root-only/@version" row="2" column="3" sheet="data"/>
+ <cell path="/root-only/@date" row="2" column="4" sheet="data"/>
+</map>