| 4 |
as used by the World Wide Web application (HTML DTD). |
as used by the World Wide Web application (HTML DTD). |
| 5 |
|
|
| 6 |
$Id$ |
$Id$ |
| 7 |
|
|
| 8 |
--> |
--> |
| 9 |
|
|
| 10 |
<!-- Feature Test Entities --> |
<!-- Feature Test Entities --> |
| 26 |
|
|
| 27 |
<!ENTITY % HTML.Minimal "IGNORE"> |
<!ENTITY % HTML.Minimal "IGNORE"> |
| 28 |
<!ENTITY % HTML.Obsolete "IGNORE"> |
<!ENTITY % HTML.Obsolete "IGNORE"> |
| 29 |
|
<!ENTITY % HTML.Prescriptive "IGNORE"> |
| 30 |
|
|
| 31 |
<![ %HTML.Minimal [ |
<![ %HTML.Minimal [ |
| 32 |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
<!ENTITY % HTML.linkRelationships "IGNORE"> |
| 35 |
<!ENTITY % HTML.forms "IGNORE"> |
<!ENTITY % HTML.forms "IGNORE"> |
| 36 |
<!-- @@ nested lists --> |
<!-- @@ nested lists --> |
| 37 |
<!-- @@ phrases --> |
<!-- @@ phrases --> |
| 38 |
|
<!-- @@ headers inside A --> |
| 39 |
|
<!-- @@ nested phrases, fonts --> |
| 40 |
]]> |
]]> |
| 41 |
|
|
| 42 |
<![ %HTML.Obsolete [ |
<![ %HTML.Obsolete [ |
|
<!ENTITY % HTML.PLAINTEXT "INCLUDE"> |
|
| 43 |
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
| 44 |
<!ENTITY % HTML.litCDATA "INCLUDE"> |
<!ENTITY % HTML.litCDATA "INCLUDE"> |
|
<!ENTITY % HTML.font-phrase "INCLUDE"> |
|
|
<!ENTITY % HTML.anchorNameCDATA "INCLUDE"> |
|
| 45 |
<!ENTITY % HTML.pSeparator "INCLUDE"> |
<!ENTITY % HTML.pSeparator "INCLUDE"> |
| 46 |
]]> |
]]> |
| 47 |
|
|
| 48 |
<!ENTITY % HTML.GO "IGNORE" |
<![ %HTML.Prescriptive [ |
| 49 |
-- The GO element used in ORA GNN. What is this??? --> |
<!-- |
| 50 |
|
This feature test entity prescribes that certain |
| 51 |
|
idioms detract from the structural integrity of an |
| 52 |
|
HTML document, and are therefore disallowed. |
| 53 |
|
--> |
| 54 |
|
<!ENTITY % HTML.font-phrase "IGNORE"> |
| 55 |
|
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
| 56 |
|
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
| 57 |
|
<!ENTITY % HTML.bodyBlockOnly "INCLUDE"> |
| 58 |
|
]]> |
| 59 |
|
|
| 60 |
<!ENTITY % HTML.aEndOmissable "IGNORE" |
<!ENTITY HTML.Version |
| 61 |
-- infer </A> tags, as in ORA GNN stuff --> |
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
| 62 |
|
-- public identifier for "default" version -- |
| 63 |
|
-- actually, take the $'s out to get the real public identifer, -- |
| 64 |
|
-- since $ is illegal in public identifier. When DTD stabilizes, -- |
| 65 |
|
-- we'll need to stop using RCS keywords to version the pub id -- |
| 66 |
|
> |
| 67 |
|
|
| 68 |
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
<!ENTITY % HTML.bodyBlockOnly "IGNORE" |
| 69 |
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
-- only allow block elements in the BODY element |
| 70 |
|
This means all paragraphs need to start with a <P> tag. |
| 71 |
|
--> |
| 72 |
|
|
| 73 |
<!ENTITY % HTML.pSeparator "IGNORE" |
<!ENTITY % HTML.pSeparator "IGNORE" |
| 74 |
-- 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. |
|
| 75 |
--> |
--> |
| 76 |
|
|
| 77 |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
| 91 |
like URN, content type, title... |
like URN, content type, title... |
| 92 |
--> |
--> |
| 93 |
|
|
| 94 |
<!ENTITY % HTML.anchorNameCDATA "IGNORE" |
<!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
| 95 |
-- Anchor names should be distinct. SGML parser can validate |
-- Anchor names should be distinct. SGML parser can validate |
| 96 |
this if the NAME attribute of the A element is declared as ID. |
this if the NAME attribute of the A element is declared as ID. |
| 97 |
But that restricts the syntax of an anchor name to an SGML name, |
But that restricts the syntax of an anchor name to an SGML name, |
| 99 |
up to NAMELEN (34) characters long. |
up to NAMELEN (34) characters long. |
| 100 |
--> |
--> |
| 101 |
|
|
| 102 |
<!ENTITY % HTML.PLAINTEXT "IGNORE" |
<!ENTITY % HTML.PLAINTEXT "INCLUDE" |
| 103 |
-- Support for the <PLAINTEXT> tag as a sign of the |
-- Support for the <PLAINTEXT> tag as a sign of the |
| 104 |
end of th HTML data stream and the beginning of a stream |
end of th HTML data stream and the beginning of a stream |
| 105 |
of text/plain data |
of text/plain data |
| 116 |
next anchor id to use |
next anchor id to use |
| 117 |
--> |
--> |
| 118 |
|
|
| 119 |
<!ENTITY % HTML.font-phrase "IGNORE" |
<!ENTITY % HTML.font-phrase "INCLUDE" |
| 120 |
-- allow B, I, TT, U outside PRE, |
-- allow B, I, TT, U outside PRE, |
| 121 |
CITE, VAR, etc. inside PRE |
CITE, VAR, etc. inside PRE |
| 122 |
--> |
--> |
| 123 |
|
|
| 124 |
|
<!ENTITY % HTML.KEY "IGNORE" |
| 125 |
|
-- There was once a KEY element, for keyboard keys, menu items, |
| 126 |
|
buttons, etc. but it's not supported or widely documented |
| 127 |
|
--> |
| 128 |
|
|
| 129 |
|
<!ENTITY % HTML.U "IGNORE" |
| 130 |
|
-- There was also a U element, but since it clashes with |
| 131 |
|
the common pracitce of underlining hypertext links, it is |
| 132 |
|
not widely supported |
| 133 |
|
--> |
| 134 |
|
|
| 135 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % HTML.litCDATA "IGNORE" |
| 136 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
| 137 |
--> |
--> |
| 157 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
| 158 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
| 159 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
| 160 |
|
|
| 161 |
|
@@ Need to discuss relative addresses. |
| 162 |
--> |
--> |
| 163 |
|
|
| 164 |
<!ENTITY % Content-Type "CDATA" |
<!ENTITY % Content-Type "CDATA" |
| 165 |
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
-- meaning a MIME content type, as per RFC1521 |
| 166 |
--> |
--> |
| 167 |
|
|
| 168 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
| 205 |
|
|
| 206 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
| 207 |
<!ENTITY % obsolete-plaintext ""> |
<!ENTITY % obsolete-plaintext ""> |
|
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
|
|
<!ENTITY % end-isindex ""> |
|
| 208 |
|
|
| 209 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;"> |
| 210 |
<!ELEMENT HTML O O (%html-content)> |
<!ELEMENT HTML O O (%html-content)> |
| 211 |
|
|
| 212 |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
| 240 |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
| 241 |
<!ATTLIST BASE |
<!ATTLIST BASE |
| 242 |
|
|
| 243 |
HREF %URI; #IMPLIED |
HREF %URI; #REQUIRED |
| 244 |
|
|
| 245 |
> |
> |
| 246 |
|
|
| 247 |
<!ENTITY % font "TT | B | I | U "> |
<![ %HTML.KEY [ |
| 248 |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
<!ENTITY % key-emph "| KEY"> |
| 249 |
|
]]> |
| 250 |
|
<!ENTITY % key-emph ""> |
| 251 |
|
|
| 252 |
|
<![ %HTML.U [ |
| 253 |
|
<!ENTITY % u-font "| U"> |
| 254 |
|
]]> |
| 255 |
|
<!ENTITY % u-font ""> |
| 256 |
|
|
| 257 |
|
<!ENTITY % font "TT | B | I %u-font"> |
| 258 |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE |
| 259 |
|
| STRIKE %key-emph"> |
| 260 |
|
|
| 261 |
|
|
| 262 |
<![ %HTML.font-phrase [ |
<![ %HTML.font-phrase [ |
| 263 |
<!ENTITY % obsolete-font "| %font"> |
<!ENTITY % obsolete-font "| %font"> |
| 273 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ENTITY % inline "%phrase %obsolete-font"> |
| 274 |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
| 275 |
|
|
| 276 |
<![ %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"> |
|
| 277 |
|
|
| 278 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
| 279 |
|
|
| 300 |
%block-form %block-p"> |
%block-form %block-p"> |
| 301 |
|
|
| 302 |
|
|
| 303 |
<!ENTITY % body-content "%heading | %block %obsolete-htext"> |
<![ %HTML.bodyBlockOnly [ |
| 304 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % current-htext ""> |
| 305 |
|
]]> |
| 306 |
|
<!ENTITY % current-htext "| %htext"> |
| 307 |
|
|
| 308 |
|
<!ENTITY % body-content "%heading | %block %current-htext"> |
| 309 |
|
<!ELEMENT BODY O O (%body-content)*> |
| 310 |
|
|
|
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
|
|
<!ENTITY % a-end "-"> |
|
| 311 |
|
|
| 312 |
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
<!ELEMENT A - - (%heading|%block|%text)+ -(A) |
| 313 |
-- @# Technically, this allows silliness like: |
-- @# Technically, this allows silliness like: |
| 314 |
<H2><A>xyz<H1>h1</H1></A></H2> |
<H2><A>xyz<H1>h1</H1></A></H2> |
| 315 |
The right way to do anchors outside of %htext is more like: |
The right way to do anchors outside of %htext is more like: |
| 338 |
|
|
| 339 |
<!ELEMENT DL - - (DT*, DD?)+> |
<!ELEMENT DL - - (DT*, DD?)+> |
| 340 |
<!ATTLIST DL |
<!ATTLIST DL |
| 341 |
STYLE (COMPACT) #IMPLIED> |
COMPACT (COMPACT) #IMPLIED> |
| 342 |
|
|
| 343 |
<!ELEMENT DT - O (%htext)+> |
<!ELEMENT DT - O (%htext)+> |
| 344 |
<!ELEMENT DD - O (%htext|%block)+> |
<!ELEMENT DD - O (%htext|%block)+> |
| 350 |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
| 351 |
-- for quoting some other source --> |
-- for quoting some other source --> |
| 352 |
|
|
| 353 |
<!ELEMENT ADDRESS - - (%htext;)+> |
<!ELEMENT ADDRESS - - (%htext;|%block)+> |
| 354 |
|
|
| 355 |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
| 356 |
<!ATTLIST PRE |
<!ATTLIST PRE |
| 363 |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
| 364 |
%ISOlat1; |
%ISOlat1; |
| 365 |
|
|
| 366 |
<!ENTITY amp "&" -- ampersand --> |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
| 367 |
<!ENTITY gt ">" -- greater than --> |
<!ENTITY amp CDATA "&" -- ampersand --> |
| 368 |
<!ENTITY lt "<" -- less than --> |
<!ENTITY gt CDATA ">" -- greater than --> |
| 369 |
<!ENTITY quot """ -- less than --> |
<!ENTITY lt CDATA "<" -- less than --> |
| 370 |
|
<!ENTITY quot CDATA """ -- double quote --> |
| 371 |
|
|
| 372 |
|
<!-- Processing Entities --> |
| 373 |
|
|
| 374 |
<!ENTITY nbsp "<? nonbreaking-space>"> |
<!ENTITY nbsp "<? nonbreaking-space>"> |
| 375 |
<!-- @# should add entites for processing instructions |
<!-- @# should add entites for processing instructions |
| 376 |
for line break, centering, etc. --> |
for line break, centering, etc. --> |
| 377 |
|
|
| 378 |
|
|
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
|
|
<!ENTITY % lit-content "RCDATA"> |
|
|
<!ELEMENT (%literal) - - %lit-content> |
|
|
|
|
|
<![ %HTML.PLAINTEXT [ |
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
|
|
]]> |
|
|
|
|
|
|
|
| 379 |
<!-- Forms --> |
<!-- Forms --> |
| 380 |
<![ %HTML.forms [ |
<![ %HTML.forms [ |
| 381 |
|
|
| 396 |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
| 397 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 398 |
SRC %URI #IMPLIED -- for image inputs -- |
SRC %URI #IMPLIED -- for image inputs -- |
| 399 |
STATE (CHECKED) #IMPLIED |
CHECKED (CHECKED) #IMPLIED |
| 400 |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
| 401 |
MAXLENGTH NUMBER #IMPLIED |
MAXLENGTH NUMBER #IMPLIED |
| 402 |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
| 406 |
<!ATTLIST SELECT |
<!ATTLIST SELECT |
| 407 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
| 408 |
SIZE NUMBER #IMPLIED |
SIZE NUMBER #IMPLIED |
| 409 |
SELECTIONS (MULTIPLE) #IMPLIED |
MULTIPLE (MULTIPLE) #IMPLIED |
| 410 |
> |
> |
| 411 |
|
|
| 412 |
<!ELEMENT OPTION - O (#PCDATA)> |
<!ELEMENT OPTION - O (#PCDATA)> |
| 413 |
<!ATTLIST OPTION |
<!ATTLIST OPTION |
| 414 |
STATE (SELECTED) #IMPLIED |
SELECTED (SELECTED) #IMPLIED |
| 415 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 416 |
> |
> |
| 417 |
|
|
| 423 |
> |
> |
| 424 |
]]> |
]]> |
| 425 |
|
|
| 426 |
|
<!-- Obsolete Elements --> |
| 427 |
|
|
| 428 |
|
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
| 429 |
|
<!ENTITY % lit-content "RCDATA"> |
| 430 |
|
<!ELEMENT (%literal) - - %lit-content> |
| 431 |
|
|
| 432 |
|
<![ %HTML.PLAINTEXT [ |
| 433 |
|
<!ELEMENT PLAINTEXT - O EMPTY> |
| 434 |
|
]]> |