summaryrefslogtreecommitdiff
path: root/testdata/integration/osxml/lists_ontology.osxml
blob: c18494a31d3e1d7c37b4122b7d2b60fc29316f20 (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
<?xml version="1.0"?>
<ontology name="lists">
	<import rel="ontology" src="./book_ontology"/>

	<struct name="ul" isa="book.paragraph">
		<!-- Here we solve the problem of parents using the isa
			 mechanism, because a list may occur whereever a paragraph
			 may occur. However we do want to override the default field. -->
		<field>
			<childRef ref="item"/>
		</field>
	</struct>
	<struct name="ol" isa="book.paragraph">
		<!-- Here we solve the problem of parents using the isa
		     mechanism, because a list may occur whereever a paragraph
		     may occur. However we do want to override the default field. -->
		<field>
			<childRef ref="item"/>
		</field>
	</struct>
	<struct name="item">
		<fieldRef ref="book.paragraph.$default"/>
	</struct>
</ontology>