include "common.rnc" book = element book { book.attlist, title, values?, author+, abstract, license?, version, date, part+ } book.attlist &= attribute link { text }?, attribute disclaimer { "articles" | "oldbook" | "draft" | "obsolete" }?, attribute redirect { text }?, attribute lang { text }? part = element part { part.attlist, title, abstract, chapter+ } part.attlist &= attribute id { text }? chapter = element chapter { chapter.attlist, title, abstract?, \include } chapter.attlist &= attribute id { text }? sections = element sections { sections.attlist, abstract?, version, date, section+ } sections.attlist &= empty section = 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, (\include | block.class+) } start = summary | glepindex | included | sections | book