summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/bibliography_domain.osxml
diff options
context:
space:
mode:
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>