summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/bibliography_domain.osxml
blob: f1d25f8faac2d5492474f7c6e03f31ae51180f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>