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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
|
<!-- html-2.1e.dtd
Document Type Definition for the HyperText Markup Language,
version 2.1E (HTML DTD)
Last revised: 95/09/25
Authors: Daniel W. Connolly <connolly@w3.org>
Francois Yergeau <yergeau@alis.com>
-->
<!ENTITY % HTML.Version
"-//IETF//DTD HTML 2.1E//EN"
-- Typical usage:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.1E//EN">
<html>
...
</html>
--
>
<!--============ Feature Test Entities ========================-->
<!ENTITY % HTML.Recommended "IGNORE"
-- Certain features of the language are necessary for
compatibility with widespread usage, but they may
compromise the structural integrity of a document.
This feature test entity enables a more prescriptive
document type definition that eliminates
those features.
-->
<![ %HTML.Recommended [
<!ENTITY % HTML.Deprecated "IGNORE">
]]>
<!ENTITY % HTML.Deprecated "INCLUDE"
-- Certain features of the language are necessary for
compatibility with earlier versions of the specification,
but they tend to be used and implemented inconsistently,
and their use is deprecated. This feature test entity
enables a document type definition that eliminates
these features.
-->
<!ENTITY % HTML.Highlighting "INCLUDE"
-- Use this feature test entity to validate that a
document uses no highlighting tags, which may be
ignored on minimal implementations.
-->
<!ENTITY % HTML.Forms "INCLUDE"
-- Use this feature test entity to validate that a document
contains no forms, which may not be supported in minimal
implementations
-->
<!--============== Imported Names ==============================-->
<!ENTITY % Content-Type "CDATA"
-- meaning an internet media type
(aka MIME content type, as per RFC1521)
-->
<!ENTITY % HTTP-Method "GET | POST"
-- as per HTTP specification, in progress
-->
<!ENTITY % URI "CDATA" -- uniform resource identifier -->
<!--========= DTD "Macros" =====================-->
<!ENTITY % Length "CDATA" -- number followed by optional units -->
<!ENTITY % heading "H1|H2|H3|H4|H5|H6">
<!ENTITY % list " UL | OL | DIR | MENU " >
<!ENTITY % attrs -- common attributes for elements --
'ID ID #IMPLIED -- element identifier --
LANG NAME #IMPLIED -- RFC 1766 language tag --
DIR (ltr|rtl) #IMPLIED -- text directionality --'>
<!ENTITY % size
'WIDTH %Length #IMPLIED -- desired width in units --
HEIGHT %Length #IMPLIED -- desired height in units --'>
<!ENTITY % align.simple
'ALIGN (top|middle|bottom) #IMPLIED -- glyph alignment --'>
<!ENTITY % align
'ALIGN (top|middle|bottom|left|center|right) #IMPLIED -- float or glyph alignment --
HSPACE %Length #IMPLIED -- text stays this far away horizontally --
VSPACE %Length #IMPLIED -- text stays this far away vertically --
FLOWTO NAME #IMPLIED -- flow text around float until this ID --'>
<!ENTITY % just -- an attribute for text justification --
'ALIGN (left|right|center|justify) #IMPLIED'>
<!--======= Character mnemonic entities =================-->
<!ENTITY % ISOlat1 PUBLIC
"ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
%ISOlat1;
<!--Entities for markup significant characters -->
<!ENTITY amp CDATA "&" -- ampersand -->
<!ENTITY gt CDATA ">" -- greater than -->
<!ENTITY lt CDATA "<" -- less than -->
<!ENTITY quot CDATA """ -- double quote -->
<!--Entities for language-dependent presentation (BIDI and contextual analysis) -->
<!ENTITY zwnj CDATA "‌"-- zero width non-joiner-->
<!ENTITY zwj CDATA "‍"-- zero width joiner-->
<!ENTITY lrm CDATA "‎"-- left-to-right mark-->
<!ENTITY rlm CDATA "‏"-- right-to-left mark-->
<!--========= SGML Document Access (SDA) Parameter Entities =====-->
<!-- HTML 2.0 contains SGML Document Access (SDA) fixed attributes
in support of easy transformation to the International Committee
for Accessible Document Design (ICADD) DTD
"-//EC-USA-CDA/ICADD//DTD ICADD22//EN".
ICADD applications are designed to support usable access to
structured information by print-impaired individuals through
Braille, large print and voice synthesis. For more information on
SDA & ICADD:
- ISO 12083:1993, Annex A.8, Facilities for Braille,
large print and computer voice
- ICADD ListServ
<ICADD%ASUACAD.BITNET@ARIZVM1.ccit.arizona.edu>
- Usenet news group bit.listserv.easi
- Recording for the Blind, +1 800 221 4792
-->
<!ENTITY % SDAFORM "SDAFORM CDATA #FIXED"
-- one to one mapping -->
<!ENTITY % SDARULE "SDARULE CDATA #FIXED"
-- context-sensitive mapping -->
<!ENTITY % SDAPREF "SDAPREF CDATA #FIXED"
-- generated text prefix -->
<!ENTITY % SDASUFF "SDASUFF CDATA #FIXED"
-- generated text suffix -->
<!ENTITY % SDASUSP "SDASUSP NAME #FIXED"
-- suspend transform process -->
<!--========== Text Markup =====================-->
<![ %HTML.Highlighting [
<!ENTITY % font " TT | B | I ">
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE">
<!ENTITY % text "#PCDATA|A|EMBED|IMG|BR|%phrase|%font|SPAN|Q|BDO|SUP|SUB">
<!ELEMENT (%font;|%phrase) - - (%text)*>
<!ATTLIST ( TT | CODE | SAMP | KBD | VAR )
%attrs;
%SDAFORM; "Lit"
>
<!ATTLIST ( B | STRONG )
%attrs;
%SDAFORM; "B"
>
<!ATTLIST ( I | EM | CITE )
%attrs;
%SDAFORM; "It"
>
<!-- <TT> Typewriter text -->
<!-- <B> Bold text -->
<!-- <I> Italic text -->
<!-- <EM> Emphasized phrase -->
<!-- <STRONG> Strong emphasis -->
<!-- <CODE> Source code phrase -->
<!-- <SAMP> Sample text or characters -->
<!-- <KBD> Keyboard phrase, e.g. user input -->
<!-- <VAR> Variable phrase or substituable -->
<!-- <CITE> Name or title of cited work -->
<!ENTITY % pre.content "#PCDATA|A|HR|BR|%font|%phrase|SPAN|BDO">
]]>
<!ENTITY % text "#PCDATA|A|EMBED|IMG|BR|SPAN|Q|BDO|SUP|SUB">
<!-- Should the BDO element have an SDAFORM attr.? Which? -->
<!ELEMENT BDO - - (%text)+>
<!ATTLIST BDO
LANG NAME #IMPLIED
DIR (ltr|rtl) #REQUIRED
>
<!-- <BDO> Control bidirectionnal text -->
<!ELEMENT BR - O EMPTY>
<!ATTLIST BR
%SDAPREF; "&#RE;"
>
<!-- <BR> Line break -->
<!-- Should the SPAN element have an SDAFORM attr.? Which? -->
<!ELEMENT SPAN - - (%text)*>
<!ATTLIST SPAN
%attrs;
>
<!-- <SPAN> Generic container -->
<!ELEMENT Q - - (%text)*>
<!ATTLIST Q
%attrs;
%SDAFORM; "It" -- to be verified --
>
<!-- <Q> Short quotation -->
<!ELEMENT (SUP|SUB) - - (#PCDATA)>
<!ATTLIST (SUP|SUB)
%attrs;
>
<!-- <SUP> Superscript -->
<!-- <SUB> Subscript -->
<!--========= Link Markup ======================-->
<!ENTITY % linkType "NAME">
<!ENTITY % link.internal -- attributes for links with implicit presentation resource --
'SRC %URI; #REQUIRED -- resource to retrieve --
PARAMS CDATA #IMPLIED -- presentation specializer --'>
<!ENTITY % link.metainfo -- overall link metainfo --
'TITLE CDATA #IMPLIED -- overall title for resource --
URN %URI #IMPLIED -- global entity name --
REL %linkType #IMPLIED
REV %linkType #IMPLIED '>
<!ENTITY % mime.constraints -- MIME typing constraints --
'ACCEPT CDATA "text/plain" -- applicable media type(s) --
ACCEPT-CHARSET CDATA "ISO-8859-1" -- applicable character encoding(s) --
ACCEPT-ENCODING CDATA "ISO-8859-1" -- applicable content transfer encoding(s) --'>
<![ %HTML.Deprecated [
<!ENTITY % case.metainfo -- link metainfo for specific variant --
'%mime.constraints; -- type constraints --
METHODS NAMES #IMPLIED -- deprecated --'>
]]>
<!ENTITY % case.metainfo -- link metainfo for specific variant --
'%mime.constraints; -- type constraints --'>
<![ %HTML.Recommended [
<!ENTITY % key.value -- key/value pair with typed value --
'NAME NAME #IMPLIED -- keyword, usually required --
VALUE CDATA #IMPLIED -- default value --
%mime.constraints; -- type constraints for value --'>
]]>
<!ENTITY % key.value -- key/value pair with typed value --
'NAME CDATA #IMPLIED -- keyword, usually required --
VALUE CDATA #IMPLIED -- default value --
%mime.constraints; -- type constraints for value --'>
<!ENTITY % linkExtraAttributes
'%link.metainfo;
%case.metainfo;
'>
<![ %HTML.Recommended [
<!ENTITY % A.content "(%text)*"
-- <H1><a name="xxx">Heading</a></H1>
is preferred to
<a name="xxx"><H1>Heading</H1></a>
-->
]]>
<!ENTITY % A.content "(%heading|%text)*">
<!ELEMENT A - - %A.content -(A)>
<!ATTLIST A
%attrs;
HREF CDATA #IMPLIED
NAME CDATA #IMPLIED
%linkExtraAttributes;
%SDAPREF; "<Anchor: #AttList>"
>
<!-- <A> Anchor; source/destination of link -->
<!-- <A NAME="..."> Name of this anchor -->
<!-- <A HREF="..."> Address of link destination -->
<!-- <A URN="..."> Permanent address of destination -->
<!-- <A REL=...> Relationship to destination -->
<!-- <A REV=...> Relationship of destination to this -->
<!-- <A TITLE="..."> Title of destination (advisory) -->
<!-- <A METHODS="..."> Operations on destination (advisory) -->
<!-- <A CHARSET="..."> Charset of destination (advisory) -->
<!--========== Embedded Objects and Images ==========================-->
<!ELEMENT EMBED - - (PARAM*, CAPTION?, EMBED.BODY, CREDIT?)>
<!ATTLIST EMBED
%attrs;
%link.internal;
%link.metainfo;
%case.metainfo;
%size; -- size of reserved area --
%align; -- alignment or float --
%SDAPREF; '<Fig><Xref IDRef="#AttVal(SRC)"><?SDATrans Embed: #AttList>'
%SDASUFF; '</Fig>'
>
<!ELEMENT CAPTION - - (%text;)+ -- caption for floating element -->
<!ATTLIST CAPTION
%attrs;
%align; -- side of rectangle where caption placed --
%SDAPREF; "Caption: "
>
<!ELEMENT EMBED.BODY O O %A.content>
<!ATTLIST EMBED.BODY
%attrs;
>
<!ELEMENT CREDIT - - (%text;)* -- copyright/credit for embedded object -->
<!ATTLIST CREDIT
%attrs;
%SDAFORM; "Fn"
>
<!ELEMENT PARAM - O EMPTY>
<!ATTLIST PARAM
%attrs;
%key.value;
%SDAPREF; "<?SDATrans Param: #AttList>"
>
<!ELEMENT IMG - O EMPTY>
<!ATTLIST IMG
%attrs;
%link.internal;
%align.simple;
ALT CDATA #IMPLIED
ISMAP
|