summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/lists_domain.oxm
blob: 4360a6dd9bb13f03585af4584d898d99041462b3 (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="lists">
	<import rel="domain" src="book.oxm"/>

	<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 name="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 name="item"/>
		</field>
	</struct>
	<struct name="item">
		<field>
			<childRef name="book.paragaph"/>
		</field>
	</struct>
</domain>