1 |
<!-- html.dtd |
<!-- html.dtd |
2 |
|
|
3 |
Document Type Definition for the HyperText Markup Language |
Document Type Definition for the HyperText Markup Language |
4 |
as used by the World Wide Web application (HTML DTD). |
as used by the World Wide Web (HTML DTD). |
5 |
|
|
6 |
$Id$ |
$Id$ |
7 |
|
|
8 |
|
Author: Daniel W. Connolly <connolly@hal.com> |
9 |
|
See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html |
10 |
|
http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html |
11 |
--> |
--> |
12 |
|
|
13 |
|
<!ENTITY HTML.Version |
14 |
|
"-//W3O//DTD WWW HTML 2.0//EN" |
15 |
|
-- public identifier for "current pracitice" version -- |
16 |
|
|
17 |
|
-- Typical usage: |
18 |
|
|
19 |
|
<!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN"> |
20 |
|
<html> |
21 |
|
... |
22 |
|
</html> |
23 |
|
-- |
24 |
|
> |
25 |
|
|
26 |
|
|
27 |
<!-- Feature Test Entities --> |
<!-- Feature Test Entities --> |
28 |
|
|
29 |
<!-- To use these, write your document like: |
<!-- To use these, write your document like: |
41 |
sgmls -s doctype.sgml foo.html |
sgmls -s doctype.sgml foo.html |
42 |
--> |
--> |
43 |
|
|
44 |
<!ENTITY % HTML.Minimal "IGNORE"> |
<!ENTITY % HTML.Level0 "IGNORE"> |
45 |
<!ENTITY % HTML.Obsolete "IGNORE"> |
<!ENTITY % HTML.Obsolete "IGNORE"> |
46 |
<!ENTITY % HTML.Prescriptive "IGNORE"> |
<!ENTITY % HTML.Prescriptive "IGNORE"> |
47 |
|
|
48 |
<![ %HTML.Minimal [ |
<![ %HTML.Level0 [ |
49 |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
50 |
<!ENTITY % HTML.linkMethods "IGNORE"> |
<!ENTITY % HTML.linkMethods "IGNORE"> |
51 |
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
52 |
<!ENTITY % HTML.forms "IGNORE"> |
<!ENTITY % HTML.forms "IGNORE"> |
53 |
<!-- @@ nested lists --> |
<!ENTITY % HTML.phrase "IGNORE"> |
54 |
<!-- @@ phrases --> |
<!ENTITY % HTML.NEXTID "IGNORE"> |
55 |
<!-- @@ headers inside A --> |
<!-- @# Are the following required for conformance? --> |
56 |
<!-- @@ nested phrases, fonts --> |
<!-- @# nested lists --> |
57 |
|
<!-- @# IMG --> |
58 |
|
<!-- @# headers inside A --> |
59 |
|
<!-- @# nested phrases, fonts --> |
60 |
]]> |
]]> |
61 |
|
|
62 |
<![ %HTML.Obsolete [ |
<![ %HTML.Obsolete [ |
66 |
]]> |
]]> |
67 |
|
|
68 |
<![ %HTML.Prescriptive [ |
<![ %HTML.Prescriptive [ |
69 |
|
<!-- |
70 |
|
This feature test entity prescribes that certain |
71 |
|
idioms detract from the structural integrity of an |
72 |
|
HTML document, and are therefore disallowed. |
73 |
|
--> |
74 |
<!ENTITY % HTML.font-phrase "IGNORE"> |
<!ENTITY % HTML.font-phrase "IGNORE"> |
75 |
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
76 |
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
77 |
<!ENTITY HTML.Version |
<!ENTITY % HTML.bodyBlockOnly "INCLUDE"> |
|
"-//connolly hal.com//DTD WWW HTML |
|
|
$Date 1994/04/19 17:24:06 $ Prescriptive//EN"> |
|
78 |
]]> |
]]> |
79 |
|
|
80 |
<!ENTITY HTML.Version |
<!ENTITY % HTML.phrase "INCLUDE" |
81 |
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
-- phrase markup, ala TeXinfo: TT, EM, etc. |
82 |
-- public identifier for "default" version -- |
--> |
|
-- actually, take the $'s out to get the real public identifer, -- |
|
|
-- since $ is illegal in public identifier. When DTD stabilizes, -- |
|
|
-- we'll need to stop using RCS keywords to version the pub id -- |
|
|
> |
|
|
|
|
|
<!ENTITY % HTML.GO "IGNORE" |
|
|
-- The GO element used in ORA GNN. What is this??? --> |
|
|
|
|
|
<!ENTITY % HTML.aEndOmissable "IGNORE" |
|
|
-- infer </A> tags, as in ORA GNN stuff --> |
|
83 |
|
|
84 |
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
<!ENTITY % HTML.bodyBlockOnly "IGNORE" |
85 |
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
-- only allow block elements in the BODY element |
86 |
|
This means all paragraphs need to start with a <P> tag. |
87 |
|
--> |
88 |
|
|
89 |
<!ENTITY % HTML.pSeparator "IGNORE" |
<!ENTITY % HTML.pSeparator "IGNORE" |
90 |
-- use P element as paragraph separator, rather that container. |
-- use P element as paragraph separator, rather that container. |
|
This means not all paragraphs need to start with a <P> tag. |
|
91 |
--> |
--> |
92 |
|
|
93 |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
137 |
CITE, VAR, etc. inside PRE |
CITE, VAR, etc. inside PRE |
138 |
--> |
--> |
139 |
|
|
140 |
|
<!ENTITY % HTML.KEY "IGNORE" |
141 |
|
-- There was once a KEY element, for keyboard keys, menu items, |
142 |
|
buttons, etc. but it's not supported or widely documented |
143 |
|
--> |
144 |
|
|
145 |
|
<!ENTITY % HTML.U "IGNORE" |
146 |
|
-- There was also a U element, but since it clashes with |
147 |
|
the common pracitce of underlining hypertext links, it is |
148 |
|
not widely supported |
149 |
|
--> |
150 |
|
|
151 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % HTML.litCDATA "IGNORE" |
152 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
153 |
--> |
--> |
173 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
174 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
175 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
176 |
|
|
177 |
--> |
--> |
178 |
|
|
179 |
<!ENTITY % Content-Type "CDATA" |
<!ENTITY % Content-Type "CDATA" |
180 |
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
-- meaning a MIME content type, as per RFC1521 |
181 |
--> |
--> |
182 |
|
|
183 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
220 |
|
|
221 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
222 |
<!ENTITY % obsolete-plaintext ""> |
<!ENTITY % obsolete-plaintext ""> |
|
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
|
|
<!ENTITY % end-isindex ""> |
|
223 |
|
|
224 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;"> |
225 |
<!ELEMENT HTML O O (%html-content)> |
<!ELEMENT HTML O O (%html-content)> |
226 |
|
|
227 |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
255 |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
256 |
<!ATTLIST BASE |
<!ATTLIST BASE |
257 |
|
|
258 |
HREF %URI; #IMPLIED |
HREF %URI; #REQUIRED |
259 |
|
|
260 |
> |
> |
261 |
|
|
262 |
<!ENTITY % font "TT | B | I | U "> |
<![ %HTML.KEY [ |
263 |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
<!ENTITY % key-emph "| KEY"> |
264 |
|
]]> |
265 |
|
<!ENTITY % key-emph ""> |
266 |
|
|
267 |
|
<![ %HTML.U [ |
268 |
|
<!ENTITY % u-font "| U"> |
269 |
|
]]> |
270 |
|
<!ENTITY % u-font ""> |
271 |
|
|
272 |
|
<![ %HTML.phrase [ |
273 |
|
<!ENTITY % font "TT | B | I %u-font"> |
274 |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE |
275 |
|
| STRIKE %key-emph"> |
276 |
|
|
277 |
|
|
278 |
<![ %HTML.font-phrase [ |
<![ %HTML.font-phrase [ |
279 |
<!ENTITY % obsolete-font "| %font"> |
<!ENTITY % obsolete-font "| %font"> |
288 |
|
|
289 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ENTITY % inline "%phrase %obsolete-font"> |
290 |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
291 |
|
]]> |
292 |
|
|
293 |
<![ %HTML.GO [ |
<!ENTITY % inline ""> |
294 |
<!ELEMENT GO - O EMPTY> |
<!ENTITY % pre-inline ""> |
|
<!ENTITY % go-text "| GO"> |
|
|
]]> |
|
|
<!ENTITY % go-text ""> |
|
295 |
|
|
296 |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %obsolete-p"> |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p"> |
297 |
|
|
298 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
299 |
|
|
301 |
<!ENTITY % font-content "#PCDATA"> |
<!ENTITY % font-content "#PCDATA"> |
302 |
<!ELEMENT (%font;) - - (%font-content;)> |
<!ELEMENT (%font;) - - (%font-content;)> |
303 |
|
|
304 |
|
<![ %HTML.phrase [ |
305 |
<!ELEMENT (%phrase;) - - (%htext)+> |
<!ELEMENT (%phrase;) - - (%htext)+> |
306 |
|
]]> |
307 |
|
|
308 |
<!ENTITY % pre "PRE | XMP | LISTING"> |
<!ENTITY % pre "PRE | XMP | LISTING"> |
309 |
|
|
322 |
%block-form %block-p"> |
%block-form %block-p"> |
323 |
|
|
324 |
|
|
325 |
<!ENTITY % body-content "%heading | %block | %htext"> |
<![ %HTML.bodyBlockOnly [ |
326 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % current-htext ""> |
327 |
|
]]> |
328 |
|
<!ENTITY % current-htext "| %htext"> |
329 |
|
|
330 |
|
<!ENTITY % body-content "%heading | %block %current-htext"> |
331 |
|
<!ELEMENT BODY O O (%body-content)*> |
332 |
|
|
|
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
|
|
<!ENTITY % a-end "-"> |
|
333 |
|
|
334 |
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
<!ELEMENT A - - (%heading|%block|%text)+ -(A) |
335 |
-- @# Technically, this allows silliness like: |
-- @# Technically, this allows silliness like: |
336 |
<H2><A>xyz<H1>h1</H1></A></H2> |
<H2><A>xyz<H1>h1</H1></A></H2> |
337 |
The right way to do anchors outside of %htext is more like: |
The right way to do anchors outside of %htext is more like: |
386 |
%ISOlat1; |
%ISOlat1; |
387 |
|
|
388 |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
389 |
<!ENTITY amp "&" -- ampersand --> |
<!ENTITY amp CDATA "&" -- ampersand --> |
390 |
<!ENTITY gt ">" -- greater than --> |
<!ENTITY gt CDATA ">" -- greater than --> |
391 |
<!ENTITY lt "<" -- less than --> |
<!ENTITY lt CDATA "<" -- less than --> |
392 |
<!ENTITY quot """ -- less than --> |
<!ENTITY quot CDATA """ -- double quote --> |
393 |
|
|
394 |
|
<!-- Processing Entities --> |
395 |
|
|
396 |
<!ENTITY nbsp "<? nonbreaking-space>"> |
<!ENTITY nbsp "<? nonbreaking-space>"> |
397 |
<!-- @# should add entites for processing instructions |
<!-- @# should add entites for processing instructions |
398 |
for line break, centering, etc. --> |
for line break, centering, etc. --> |
399 |
|
|
400 |
|
|
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
|
|
<!ENTITY % lit-content "RCDATA"> |
|
|
<!ELEMENT (%literal) - - %lit-content> |
|
|
|
|
|
<![ %HTML.PLAINTEXT [ |
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
|
|
]]> |
|
|
|
|
|
|
|
401 |
<!-- Forms --> |
<!-- Forms --> |
402 |
<![ %HTML.forms [ |
<![ %HTML.forms [ |
403 |
|
|
445 |
> |
> |
446 |
]]> |
]]> |
447 |
|
|
448 |
|
<!-- Obsolete Elements --> |
449 |
|
|
450 |
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
451 |
|
<!ENTITY % lit-content "RCDATA"> |
452 |
|
<!ELEMENT (%literal) - - %lit-content> |
453 |
|
|
454 |
|
<![ %HTML.PLAINTEXT [ |
455 |
|
<!ELEMENT PLAINTEXT - O EMPTY> |
456 |
|
]]> |