summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/simple_book.oxd
blob: bb8cc164703f0d7fab9ea53b3ea73b3ed3b3cfab (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<document>
	<import rel="domain" src="book_domain.oxm"/>
	<!-- Currently we have only one root. Thus we need no wrapper. -->
	<!-- Note that we only reference "book" here, which resolves to the book
		 domain as well as the book StructuredClass. This is unambigous however,
		 because we are looking for a StructuredClass. The resolving mechanism
		 should be able to handle this. -->
	<book>
	<!-- implicitly:
	<book name="">
		 -->
	<!-- note that we do not refer to the attributes explicitly. Attributes are
		 referenced by their key-value pairs as defined in the according
		 StructType. For an example please refer to the more complex book
		 domain. -->
		<!--<book:paragraph>
		<text>
		This might be some introductory text or a dedication. Ideally, of
		course, such elements would be semantically specified as such in
		additional domains (or in this one).
		</text>
		</book:paragraph>-->
		<!-- Note that a better version of the book domain might specify
			 headings here. -->
		<chapter name="myFirstChapter">
			<!--<paragraph>
			<text>
			Here we might have an introduction to the chapter, including some
			overview of the chapters structure.
			</text>
			</paragraph>
			<section name="myFirstSection">
				<paragraph>
				<text>
				Here we might find the actual section content.
				</text>
				</paragraph>
			</section>
			<section name="mySndSection">
				<paragraph>
				<text>
				Here we might find the actual section content.
				</text>
				</paragraph>
			</section>-->
		</chapter>
	</book>
</document>