summaryrefslogtreecommitdiff
blob: bcffc69199675b4980af75b4ebb649b75b9fd22a (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
46
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 = sections | book | included | summary | glepindex