summaryrefslogtreecommitdiff
blob: b7ebf7e228c4d4c13b8c1533d11f78519c1b9bf8 (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
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 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