summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/bibliography_domain.oxm
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-15 20:48:17 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-15 20:48:17 +0100
commit2544749215bc2465bfeca431e271110ca86d8a83 (patch)
tree6e1b9e500941cec7f63a526e27881491a13ee340 /testdata/xmlparser/bibliography_domain.oxm
parent6041324a65cfdb878154af68d74aac2c86372440 (diff)
added much more test data: meta domain, lists domain, bibliography domain, version typesystem, email typesystem, affiliation typesystem and complex book document which uses the aforementioned domains and typesystems.
Diffstat (limited to 'testdata/xmlparser/bibliography_domain.oxm')
-rw-r--r--testdata/xmlparser/bibliography_domain.oxm26
1 files changed, 26 insertions, 0 deletions
diff --git a/testdata/xmlparser/bibliography_domain.oxm b/testdata/xmlparser/bibliography_domain.oxm
new file mode 100644
index 0000000..f1d25f8
--- /dev/null
+++ b/testdata/xmlparser/bibliography_domain.oxm
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<domain name="bibliography">
+
+ <import rel="domain" src="./book_domain.oxm"/>
+ <import rel="domain" src="./meta_domain.oxm"/>
+
+ <struct name="bibliography" transparent="true">
+ <field>
+ <childRef ref="bibEntry"/>
+ </field>
+ <parentRef ref="book">
+ <field name="bibliography" isSubtree="true"/>
+ </parentRef>
+ </struct>
+ <struct name="bibEntry">
+ <field name="authors" optional="true">
+ <childRef ref="meta.author"/>
+ </field>
+ <primitive name="name" type="string" isSubtree="true"/>
+ <primitive name="year" type="int" isSubtree="true"/>
+ <primitive name="journal" type="string" isSubtree="true" optional="true"/>
+ <primitive name="pages" type="cardinality" isSubtree="true" optional="true"/>
+ <!-- Here a geographical enum or something would be more exact -->
+ <primitive name="location" type="string" isSubtree="true" optional="true"/>
+ </struct>
+</domain>