summaryrefslogtreecommitdiff
blob: 55861f892a0f3c28bd84b205877e08b4ab015f66 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!-- *********************************************************************
     *** THIS IS THE FLATTENED DTD. DO NOT EDIT THIS DTD BY HAND, EDIT ***
     *** THE CUSTOMIZATION LAYER AND REGNERATE THE FLATTENED DTD! ********
     ********************************************************************* -->

<!-- ====================================================================== -->

<!-- Gentoo Guide XML V1.0 DTD
     Copyright (C) 2001 Gentoo Technologies Inc.
     http://www.gentoo.org/gentoo/guide

     See COPYRIGHT for more information

     Please direct all questions and comments about this DTD to
     Achim Gottinger <achim@gentoo.org>.

     Common declaration:

     <?xml version="1.0"?>
     <!DOCTYPE guide
       PUBLIC "-//Gentoo//DTD Guide XML V1.0//EN"
       "http://www.gentoo.org/gentoo/guide/guide.dtd">
                                                                            -->
<!-- ====================================================================== -->
<!ENTITY lt	"&#60;">
<!ENTITY gt	 "&#62;">

<!--================== Imported Names ====================================-->

<!ENTITY % URI "CDATA">
<!ENTITY % Character "CDATA">
<!ENTITY % Text "CDATA">

<!--================== Imported Names ====================================-->

<!-- Parameter Entities -->

<!ENTITY % list "UL | OL">

<!ENTITY % preformatted "PRE">

<!-- a color using sRGB: #RRGGBB as Hex values -->
<!ENTITY % Color "CDATA">

<!-- There are also 16 widely known color names with their sRGB values:

    Black  = #000000    Green  = #008000
    Silver = #C0C0C0    Lime   = #00FF00
    Gray   = #808080    Olive  = #808000
    White  = #FFFFFF    Yellow = #FFFF00
    Maroon = #800000    Navy   = #000080
    Red    = #FF0000    Blue   = #0000FF
    Purple = #800080    Teal   = #008080
    Fuchsia= #FF00FF    Aqua   = #00FFFF
 -->

 <!--=================== Generic Attributes ===============================-->

 <!ENTITY % coreattrs "id ID #IMPLIED">
 <!ENTITY % attrs "%coreattrs;">

 <!ENTITY % align "align (left|center|right|justify)  #IMPLIED">

 <!--=================== Text Markup ======================================-->

 <!ENTITY % fontstyle "I | B">
 <!ENTITY % phrase "CODE">
 <!ENTITY % special "A | IMG | BR | FONT">
 <!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special;">
<!ELEMENT I  (%inline;)*>
<!ATTLIST I %attrs;>
<!ELEMENT B  (%inline;)*>
<!ATTLIST B %attrs;>
<!ELEMENT CODE  (%inline;)*>
<!ATTLIST CODE %attrs;>

<!ELEMENT FONT (%inline;)*>
<!ATTLIST FONT
  %coreattrs;
  size        CDATA          #IMPLIED
  color       %Color;        #IMPLIED
  face        CDATA          #IMPLIED
  >

<!ELEMENT BR EMPTY>

<!--================== HTML content models ===============================-->

<!ENTITY % block "P | %preformatted; | %list; | TABLE">
<!ENTITY % flow "%inline; | %block;">

<!--=================== Document Body ====================================-->

<!ELEMENT BODY (%flow;)* >
<!ATTLIST BODY
  %attrs;
>

<!--================== The Anchor Element ================================-->

<!ELEMENT A (%inline;)*>
<!ATTLIST A
    %attrs;
    name  CDATA  #IMPLIED
    href  %URI;  #IMPLIED
  >

<!--=================== Images ===========================================-->

<!ENTITY % Length "CDATA">

<!ENTITY % Pixels "CDATA">

<!ENTITY % IAlign "(top|middle|bottom|left|right)">

<!ELEMENT IMG EMPTY>
<!ATTLIST IMG
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #IMPLIED
  name    CDATA          #IMPLIED
  height   %Length;       #IMPLIED
  width     %Length;       #IMPLIED
  align      %IAlign;       #IMPLIED
  border      %Pixels;       #IMPLIED
  hspace      %Pixels;       #IMPLIED
  vspace      %Pixels;       #IMPLIED
  >

<!--=================== Paragraphs =======================================-->

<!ELEMENT P (%inline;)*>
<!ATTLIST P
  %attrs;
  %align;
  >

<!--=================== Preformatted Text ================================-->

<!-- excludes markup for images and changes in font size -->
<!ENTITY % pre.exclusion "IMG">

<!ELEMENT PRE (#PCDATA | A | BR | FONT | %fontstyle; | %phrase;)*>
<!ATTLIST PRE
  %attrs;
  >

<!--=================== Lists ============================================-->

<!-- definition lists - DT for term, DD for its definition -->

<!ELEMENT DL  (DT|DD)+>
<!ATTLIST DL
  %attrs;
  compact     (compact)      #IMPLIED
  >

<!ELEMENT DT (%inline;)*>
<!ATTLIST DT
  %attrs;
  >

<!ELEMENT DD (%flow;)*>
<!ATTLIST DD
  %attrs;
  >

<!-- Ordered lists (OL) Numbering style

    1   arablic numbers     1, 2, 3, ...
    a   lower alpha         a, b, c, ...
    A   upper alpha         A, B, C, ...
    i   lower roman         i, ii, iii, ...
    I   upper roman         I, II, III, ...

    The style is applied to the sequence number which by default
    is reset to 1 for the first list item in an ordered list.

    This can't be expressed directly in SGML due to case folding.
-->

<!ENTITY % OLStyle "CDATA">

<!ELEMENT OL  (LI)+>
<!ATTLIST OL
  %attrs;
  type        %OLStyle;      #IMPLIED
  compact     (compact)      #IMPLIED
  start       NMTOKEN         #IMPLIED
  >

<!-- Unordered Lists (UL) bullet styles -->
<!ENTITY % ULStyle "(disc|square|circle)">

<!ELEMENT UL (LI)+>
<!ATTLIST UL
  %attrs;
  type        %ULStyle;      #IMPLIED
  compact     (compact)      #IMPLIED
  >

<!ENTITY % LIStyle "CDATA">

<!ELEMENT LI  (%flow;)*>
<!ATTLIST LI
  %attrs;
  type        %LIStyle;      #IMPLIED
  value       NMTOKEN     #IMPLIED
  >

<!--======================= Tables =======================================-->

 <!-- horizontal alignment attributes for cell contents -->
<!ENTITY % cellhalign  "align      (left|center|right|justify|char) #IMPLIED">

<!-- vertical alignment attributes for cell contents -->
<!ENTITY % cellvalign "valign (top|middle|bottom|baseline) #IMPLIED">

<!ELEMENT TABLE (TR+)>
<!ATTLIST TABLE
  %attrs;
  width       %Length;       #IMPLIED
  border      %Pixels;       #IMPLIED
  >

<!ENTITY % CAlign "(top|bottom|left|right)">

<!ELEMENT TR (TH|TD)+>
<!ATTLIST TR
  %attrs;
  %cellhalign;
  %cellvalign;
  >

<!-- TH is for headers, TD for data, but for cells acting as both use TD -->

<!ELEMENT TH  (%flow;)*>
<!ATTLIST TH
  %attrs;
  %cellhalign;
  %cellvalign;
  width       %Length;       #IMPLIED
  height      %Length;       #IMPLIED
  >

<!ELEMENT TD  (%flow;)*>
<!ATTLIST TD
  %attrs;
  rowspan    NMTOKEN #IMPLIED
  colspan    NMTOKEN  #IMPLIED
  %cellhalign;
  %cellvalign;
  width       %Length;       #IMPLIED
  height      %Length;       #IMPLIED
  >

<!--===================== Gentoo Specific =================================-->

<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT AUTHOR (#PCDATA)>
<!ATTLIST AUTHOR
    title %Text; #IMPLIED
    email %Text; #IMPLIED
>
<!ELEMENT DATE (#PCDATA)>
<!ELEMENT VERSION (#PCDATA)>
<!ELEMENT ABSTRACT (#PCDATA)>
<!ELEMENT CHAPTER (TITLE,SECTION+)>
<!ATTLIST CHAPTER
    link %Text; #IMPLIED
    >

<!ELEMENT SECTION (TITLE, BODY)>
<!ELEMENT GUIDE (TITLE, (AUTHOR+ & DATE & VERSION? & ABSTRACT?),CHAPTER+)>