summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'book.rnc')
-rw-r--r--book.rnc14
1 files changed, 11 insertions, 3 deletions
diff --git a/book.rnc b/book.rnc
index 8ede8da..ebec9f6 100644
--- a/book.rnc
+++ b/book.rnc
@@ -28,10 +28,18 @@ sections =
}
sections.attlist &= empty
section =
- element section { section.attlist, title, (body+ | subsection+) }
-subsection = element subsection { subsection.attlist, title?, body+ }
+ element section {
+ section.attlist,
+ (\include
+ | (title, (body+ | subsection+)))
+ }
+subsection =
+ element subsection {
+ subsection.attlist,
+ (\include | (title?, body+))
+ }
subsection.attlist &=
attribute id { text }?,
attribute test { text }?
-body = element body { body.attlist, block.class+ }
+body = element body { body.attlist, (\include | block.class+) }
start = glepindex | book | included | sections | summary