summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/headings_domain.oxm
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/xmlparser/headings_domain.oxm')
-rw-r--r--testdata/xmlparser/headings_domain.oxm14
1 files changed, 7 insertions, 7 deletions
diff --git a/testdata/xmlparser/headings_domain.oxm b/testdata/xmlparser/headings_domain.oxm
index f83843c..2238792 100644
--- a/testdata/xmlparser/headings_domain.oxm
+++ b/testdata/xmlparser/headings_domain.oxm
@@ -3,31 +3,31 @@
<import rel="domain" src="./book_domain.oxm"/>
- <struct name="heading" cardinality="{0-1}" transparent="true">
+ <struct name="heading" cardinality="1" transparent="true">
<!-- The parent mechanism is a curious thing. Remind yourself
that parent-child-relationship in this sense are mediated
by fields. So we must either reference a field that is
already there or declare a new one on the fly. -->
<parent name="book.book">
- <field name="heading" isSubtree="true"/>
+ <field name="heading" isSubtree="true" optional="true"/>
</parent>
<parent name="book.chapter">
- <field name="heading" isSubtree="true"/>
+ <field name="heading" isSubtree="true" optional="true"/>
</parent>
<parent name="book.section">
- <field name="heading" isSubtree="true"/>
+ <field name="heading" isSubtree="true" optional="true"/>
</parent>
<parent name="book.subsection">
- <field name="heading" isSubtree="true"/>
+ <field name="heading" isSubtree="true" optional="true"/>
</parent>
<parent name="book.paragraph">
- <field name="heading" isSubtree="true"/>
+ <field name="heading" isSubtree="true" optional="true"/>
</parent>
<!-- regarding its fields we have a problem here. We do not want to
declare a new field, because in fact we want to allow every
bit of content that a paragraph would allow - also considering
possible extensions of paragraph by other domains.
So we need to reference the default field of paragraph. -->
- <fieldRef name="book.paragraph."/>
+ <fieldRef name="book.paragraph.$default"/>
</struct>
</domain>