namespace vk = "http://www.loedejongdigitaal.nl"
include "include/toolbox.rnc"
include "include/pmstructure.rnc"
Content = Book
Book = element vk:book {BookContent}
BookContent =
Id
& Foreword?
& Index?
& Statement?
& Corrections?
& Chapter*
& Appendix*
Foreword = element vk:foreword { SectionContent }
Statement = element vk:statement { StatementContent}
StatementContent = Id
& Title
& Section*
Corrections = element vk:corrections { CorrectionsContent}
CorrectionsContent = Id
& Title
& Section*
Appendix = element vk:appendix { AppendixContent}
AppendixContent = Id
& Title
& Section*
Index = element vk:index {SectionContent}
Chapter = element vk:chapter { ChapterContent}
ChapterContent =
Id
& Title
& Number
& Section*
Section = element vk:section { SectionContent}
SectionContent =
Id
& Title?
& ((Paragraph* & Block*) | SubSection+ )
SubSection = element vk:subsection { SubSectionContent}
SubSectionContent =
Id
& Title?
& Block*
& Paragraph*
Block = element vk:block { BlockContent}
BlockContent =
ParagraphContent
& Line+
Line = element vk:line { attribute left {text} & ParagraphContent}