summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/bibliography_domain.osxml
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-15 22:49:48 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-15 22:49:48 +0100
commitfabb174fd15d129e6b8d668cd3d621b0b9481c4f (patch)
treef4560186d8d25d750400d00c8b42e9ff5acdd3d1 /testdata/xmlparser/bibliography_domain.osxml
parente1a13f339fde6518850f4ace293477864a649d15 (diff)
Renamed files from oxm and oxd to osxml
Diffstat (limited to 'testdata/xmlparser/bibliography_domain.osxml')
-rw-r--r--testdata/xmlparser/bibliography_domain.osxml26
1 files changed, 26 insertions, 0 deletions
diff --git a/testdata/xmlparser/bibliography_domain.osxml b/testdata/xmlparser/bibliography_domain.osxml
new file mode 100644
index 0000000..f1d25f8
--- /dev/null
+++ b/testdata/xmlparser/bibliography_domain.osxml
@@ -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>