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/MarkUp/MarkUp.html |
11 |
--> |
--> |
12 |
|
|
13 |
|
<!ENTITY HTML.Version |
14 |
|
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
15 |
|
-- public identifier for "current pracitice" version -- |
16 |
|
-- actually, take the $'s out to get the real public identifer, -- |
17 |
|
-- since $ is illegal in public identifier. When DTD stabilizes, -- |
18 |
|
-- we'll need to stop using RCS keywords to version the pub id -- |
19 |
|
|
20 |
|
-- Typical usage: |
21 |
|
|
22 |
|
<!DOCTYPE HTML PUBLIC "-//connolly hal.com//DTD WWW HTML |
23 |
|
$Date$//EN"> |
24 |
|
<html> |
25 |
|
... |
26 |
|
</html> |
27 |
|
-- |
28 |
|
> |
29 |
|
|
30 |
|
|
31 |
<!-- Feature Test Entities --> |
<!-- Feature Test Entities --> |
32 |
|
|
33 |
<!-- To use these, write your document like: |
<!-- To use these, write your document like: |
67 |
]]> |
]]> |
68 |
|
|
69 |
<![ %HTML.Prescriptive [ |
<![ %HTML.Prescriptive [ |
70 |
|
<!-- |
71 |
|
This feature test entity prescribes that certain |
72 |
|
idioms detract from the structural integrity of an |
73 |
|
HTML document, and are therefore disallowed. |
74 |
|
--> |
75 |
<!ENTITY % HTML.font-phrase "IGNORE"> |
<!ENTITY % HTML.font-phrase "IGNORE"> |
76 |
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
77 |
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
78 |
<!ENTITY HTML.Version |
<!ENTITY % HTML.bodyBlockOnly "INCLUDE"> |
|
"-//connolly hal.com//DTD WWW HTML |
|
|
$Date 1994/04/19 17:24:06 $ Prescriptive//EN"> |
|
79 |
]]> |
]]> |
80 |
|
|
81 |
<!ENTITY HTML.Version |
<!ENTITY % HTML.bodyBlockOnly "IGNORE" |
82 |
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
-- only allow block elements in the BODY element |
83 |
-- public identifier for "default" version -- |
This means all paragraphs need to start with a <P> tag. |
84 |
-- 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 --> |
|
|
|
|
|
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
|
|
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
|
85 |
|
|
86 |
<!ENTITY % HTML.pSeparator "IGNORE" |
<!ENTITY % HTML.pSeparator "IGNORE" |
87 |
-- 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. |
|
88 |
--> |
--> |
89 |
|
|
90 |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
134 |
CITE, VAR, etc. inside PRE |
CITE, VAR, etc. inside PRE |
135 |
--> |
--> |
136 |
|
|
137 |
|
<!ENTITY % HTML.KEY "IGNORE" |
138 |
|
-- There was once a KEY element, for keyboard keys, menu items, |
139 |
|
buttons, etc. but it's not supported or widely documented |
140 |
|
--> |
141 |
|
|
142 |
|
<!ENTITY % HTML.U "IGNORE" |
143 |
|
-- There was also a U element, but since it clashes with |
144 |
|
the common pracitce of underlining hypertext links, it is |
145 |
|
not widely supported |
146 |
|
--> |
147 |
|
|
148 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % HTML.litCDATA "IGNORE" |
149 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
150 |
--> |
--> |
170 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
171 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
172 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
173 |
|
|
174 |
|
@@ Need to discuss relative addresses. |
175 |
--> |
--> |
176 |
|
|
177 |
<!ENTITY % Content-Type "CDATA" |
<!ENTITY % Content-Type "CDATA" |
178 |
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
-- meaning a MIME content type, as per RFC1521 |
179 |
--> |
--> |
180 |
|
|
181 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
218 |
|
|
219 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
220 |
<!ENTITY % obsolete-plaintext ""> |
<!ENTITY % obsolete-plaintext ""> |
|
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
|
|
<!ENTITY % end-isindex ""> |
|
221 |
|
|
222 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;"> |
223 |
<!ELEMENT HTML O O (%html-content)> |
<!ELEMENT HTML O O (%html-content)> |
224 |
|
|
225 |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
253 |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
254 |
<!ATTLIST BASE |
<!ATTLIST BASE |
255 |
|
|
256 |
HREF %URI; #IMPLIED |
HREF %URI; #REQUIRED |
257 |
|
|
258 |
> |
> |
259 |
|
|
260 |
<!ENTITY % font "TT | B | I | U "> |
<![ %HTML.KEY [ |
261 |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
<!ENTITY % key-emph "| KEY"> |
262 |
|
]]> |
263 |
|
<!ENTITY % key-emph ""> |
264 |
|
|
265 |
|
<![ %HTML.U [ |
266 |
|
<!ENTITY % u-font "| U"> |
267 |
|
]]> |
268 |
|
<!ENTITY % u-font ""> |
269 |
|
|
270 |
|
<!ENTITY % font "TT | B | I %u-font"> |
271 |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE |
272 |
|
| STRIKE %key-emph"> |
273 |
|
|
274 |
|
|
275 |
<![ %HTML.font-phrase [ |
<![ %HTML.font-phrase [ |
276 |
<!ENTITY % obsolete-font "| %font"> |
<!ENTITY % obsolete-font "| %font"> |
286 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ENTITY % inline "%phrase %obsolete-font"> |
287 |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
288 |
|
|
289 |
<![ %HTML.GO [ |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p"> |
|
<!ELEMENT GO - O EMPTY> |
|
|
<!ENTITY % go-text "| GO"> |
|
|
]]> |
|
|
<!ENTITY % go-text ""> |
|
|
|
|
|
<!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %obsolete-p"> |
|
290 |
|
|
291 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
292 |
|
|
313 |
%block-form %block-p"> |
%block-form %block-p"> |
314 |
|
|
315 |
|
|
316 |
<!ENTITY % body-content "%heading | %block | %htext"> |
<![ %HTML.bodyBlockOnly [ |
317 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % current-htext ""> |
318 |
|
]]> |
319 |
|
<!ENTITY % current-htext "| %htext"> |
320 |
|
|
321 |
|
<!ENTITY % body-content "%heading | %block %current-htext"> |
322 |
|
<!ELEMENT BODY O O (%body-content)*> |
323 |
|
|
|
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
|
|
<!ENTITY % a-end "-"> |
|
324 |
|
|
325 |
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
<!ELEMENT A - - (%heading|%block|%text)+ -(A) |
326 |
-- @# Technically, this allows silliness like: |
-- @# Technically, this allows silliness like: |
327 |
<H2><A>xyz<H1>h1</H1></A></H2> |
<H2><A>xyz<H1>h1</H1></A></H2> |
328 |
The right way to do anchors outside of %htext is more like: |
The right way to do anchors outside of %htext is more like: |
377 |
%ISOlat1; |
%ISOlat1; |
378 |
|
|
379 |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
380 |
<!ENTITY amp "&" -- ampersand --> |
<!ENTITY amp CDATA "&" -- ampersand --> |
381 |
<!ENTITY gt ">" -- greater than --> |
<!ENTITY gt CDATA ">" -- greater than --> |
382 |
<!ENTITY lt "<" -- less than --> |
<!ENTITY lt CDATA "<" -- less than --> |
383 |
<!ENTITY quot """ -- less than --> |
<!ENTITY quot CDATA """ -- double quote --> |
384 |
|
|
385 |
|
<!-- Processing Entities --> |
386 |
|
|
387 |
<!ENTITY nbsp "<? nonbreaking-space>"> |
<!ENTITY nbsp "<? nonbreaking-space>"> |
388 |
<!-- @# should add entites for processing instructions |
<!-- @# should add entites for processing instructions |
389 |
for line break, centering, etc. --> |
for line break, centering, etc. --> |
390 |
|
|
391 |
|
|
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
|
|
<!ENTITY % lit-content "RCDATA"> |
|
|
<!ELEMENT (%literal) - - %lit-content> |
|
|
|
|
|
<![ %HTML.PLAINTEXT [ |
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
|
|
]]> |
|
|
|
|
|
|
|
392 |
<!-- Forms --> |
<!-- Forms --> |
393 |
<![ %HTML.forms [ |
<![ %HTML.forms [ |
394 |
|
|
436 |
> |
> |
437 |
]]> |
]]> |
438 |
|
|
439 |
|
<!-- Obsolete Elements --> |
440 |
|
|
441 |
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
442 |
|
<!ENTITY % lit-content "RCDATA"> |
443 |
|
<!ELEMENT (%literal) - - %lit-content> |
444 |
|
|
445 |
|
<![ %HTML.PLAINTEXT [ |
446 |
|
<!ELEMENT PLAINTEXT - O EMPTY> |
447 |
|
]]> |