| 1 |
<!-- html.dtd |
<!-- html.dtd |
| 2 |
|
|
| 3 |
Document Type Definition for the HyperText Markup Language |
Document Type Definition for the HyperText Markup Language (HTML DTD) |
|
as used by the World Wide Web application (HTML DTD). |
|
| 4 |
|
|
| 5 |
$Id$ |
$Id$ |
| 6 |
|
|
| 7 |
|
Author: Daniel W. Connolly <[email protected]> |
| 8 |
|
See Also: html.decl, html-0.dtd, html-1.dtd |
| 9 |
|
http://www.hal.com/%7Econnolly/html-spec/index.html |
| 10 |
|
http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html |
| 11 |
--> |
--> |
| 12 |
|
|
| 13 |
<!-- Feature Test Entities --> |
<!ENTITY % HTML.Version |
| 14 |
|
"-//IETF//DTD HTML//EN//2.0" |
| 15 |
|
|
| 16 |
<!-- To use these, write your document like: |
-- Typical usage: |
|
<!DOCTYPE HTML [ |
|
|
<!ENTITY % HTML.Optional "INCLUDE"> |
|
|
<!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN"> |
|
|
%html; |
|
|
]> |
|
|
<TITLE>Here's my doc</TITLE> |
|
|
<p>It uses lots of optional features |
|
|
|
|
|
In practice, if you're using sgmls to validate your docs, |
|
|
you can stick the <!DOCTYPE [...]> in a separate file and |
|
|
validate with: |
|
|
sgmls -s doctype.sgml foo.html |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.Minimal "IGNORE"> |
|
|
<!ENTITY % HTML.Obsolete "IGNORE"> |
|
|
<!ENTITY % HTML.Prescriptive "IGNORE"> |
|
|
|
|
|
<![ %HTML.Minimal [ |
|
|
<!ENTITY % HTML.linkRelationships "IGNORE"> |
|
|
<!ENTITY % HTML.linkMethods "IGNORE"> |
|
|
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
|
|
<!ENTITY % HTML.forms "IGNORE"> |
|
|
<!-- @@ nested lists --> |
|
|
<!-- @@ phrases --> |
|
|
<!-- @@ headers inside A --> |
|
|
<!-- @@ nested phrases, fonts --> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Obsolete [ |
|
|
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.litCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.pSeparator "INCLUDE"> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Prescriptive [ |
|
|
<!ENTITY % HTML.font-phrase "IGNORE"> |
|
|
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
|
|
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
|
|
<!ENTITY HTML.Version |
|
|
"-//connolly hal.com//DTD WWW HTML |
|
|
$Date 1994/04/19 17:24:06 $ Prescriptive//EN"> |
|
|
]]> |
|
|
|
|
|
<!ENTITY HTML.Version |
|
|
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
|
|
-- 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 --> |
|
|
|
|
|
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
|
|
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
|
| 17 |
|
|
| 18 |
<!ENTITY % HTML.pSeparator "IGNORE" |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 19 |
-- use P element as paragraph separator, rather that container. |
<html> |
| 20 |
This means not all paragraphs need to start with a <P> tag. |
... |
| 21 |
--> |
</html> |
| 22 |
|
-- |
| 23 |
<!ENTITY % HTML.linkRelationships "INCLUDE" |
> |
|
-- Adding markup to links to show the relationship between |
|
|
ends of a link |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html |
|
|
--> |
|
| 24 |
|
|
|
<!ENTITY % HTML.linkMethods "INCLUDE" |
|
|
-- Adding markup to links to show the methods supported |
|
|
by the referent object |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html |
|
|
--> |
|
| 25 |
|
|
| 26 |
<!ENTITY % HTML.linkRedundantInfo "INCLUDE" |
<!--================== Feature Test Entities ==============================--> |
|
-- Adding markup to links to give redundant information |
|
|
like URN, content type, title... |
|
|
--> |
|
| 27 |
|
|
| 28 |
<!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
<!ENTITY % HTML.Recommended "IGNORE" |
| 29 |
-- Anchor names should be distinct. SGML parser can validate |
-- Certain features of the language are necessary for compatibility |
| 30 |
this if the NAME attribute of the A element is declared as ID. |
with widespread usage, but they may compromise the structural |
| 31 |
But that restricts the syntax of an anchor name to an SGML name, |
integrity of a document. This feature test entity enables |
| 32 |
i.e. a letter followed by letters, numbers, periods and dashes, |
a more prescriptive document type definition that eliminates |
| 33 |
up to NAMELEN (34) characters long. |
the above features. |
| 34 |
--> |
--> |
| 35 |
|
|
| 36 |
<!ENTITY % HTML.PLAINTEXT "INCLUDE" |
<![ %HTML.Recommended [ |
| 37 |
-- Support for the <PLAINTEXT> tag as a sign of the |
<!ENTITY % HTML.Deprecated "IGNORE"> |
| 38 |
end of th HTML data stream and the beginning of a stream |
]]> |
|
of text/plain data |
|
|
--> |
|
| 39 |
|
|
| 40 |
<!ENTITY % HTML.titleCDATA "IGNORE" |
<!ENTITY % HTML.Deprecated "INCLUDE" |
| 41 |
-- Is the TITLE element #PCDATA, RCDATA, or CDATA content? |
-- Certain features of the language are necessary for compatibility |
| 42 |
On Mosaic, it's #PCDATA, but in the linemode browser, |
with earlier versions of the specification, but they tend |
| 43 |
it's more like CDATA, but not quite. |
to be used an implemented inconsistently, and their use is |
| 44 |
|
deprecated. This feature test entity enables a document type |
| 45 |
|
definition that eliminates these features. |
| 46 |
--> |
--> |
| 47 |
|
|
| 48 |
<!ENTITY % HTML.NEXTID "INCLUDE" |
<!ENTITY % HTML.Highlighting "INCLUDE"> |
| 49 |
-- Used by the NeXT implementation to keep track of the |
<!ENTITY % HTML.Forms "INCLUDE"> |
|
next anchor id to use |
|
|
--> |
|
| 50 |
|
|
| 51 |
<!ENTITY % HTML.font-phrase "INCLUDE" |
<!--================== Imported Names =====================================--> |
|
-- allow B, I, TT, U outside PRE, |
|
|
CITE, VAR, etc. inside PRE |
|
|
--> |
|
| 52 |
|
|
| 53 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % Content-Type "CDATA" |
| 54 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- meaning a MIME content type, as per RFC1521 |
| 55 |
--> |
--> |
| 56 |
|
|
| 57 |
<!ENTITY % HTML.forms "INCLUDE" |
<!ENTITY % HTTP-Method "GET | POST" |
| 58 |
-- Support for forms as per |
-- as per HTTP specification |
|
http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html |
|
| 59 |
--> |
--> |
| 60 |
|
|
|
<!-- DTD definitions --> |
|
|
|
|
|
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
|
|
<!ENTITY % list " UL | OL | DIR | MENU "> |
|
|
<!ENTITY % literal " XMP | LISTING "> |
|
|
|
|
| 61 |
<!ENTITY % URI "CDATA" |
<!ENTITY % URI "CDATA" |
| 62 |
-- The term URI means a CDATA attribute |
-- The term URI means a CDATA attribute |
| 63 |
whose value is a Uniform Resource Identifier, |
whose value is a Uniform Resource Identifier, |
| 64 |
as defined by |
as defined by |
| 65 |
"Universal Resource Identifiers" by Tim Berners-Lee |
"Universal Resource Identifiers" by Tim Berners-Lee |
| 66 |
aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html |
aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html |
| 67 |
|
aka RFC 1630 |
| 68 |
|
|
| 69 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
| 70 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
| 71 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
|
--> |
|
|
|
|
|
<!ENTITY % Content-Type "CDATA" |
|
|
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
|
|
--> |
|
|
|
|
|
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
|
|
<!ENTITY % anchor-name "ID"> |
|
| 72 |
|
|
| 73 |
<![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs " |
--> |
|
REL CDATA #IMPLIED -- forward relationship type -- |
|
|
REV CDATA #IMPLIED -- reversed relationship type |
|
|
to referent data: |
|
|
|
|
|
PARENT CHILD, SIBLING, NEXT, TOP, |
|
|
DEFINITION, UPDATE, ORIGINAL etc. -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRelAttrs ""> |
|
|
|
|
|
<![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs " |
|
|
URN CDATA #IMPLIED -- universal resource number -- |
|
| 74 |
|
|
|
TITLE CDATA #IMPLIED -- advisory only -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRedundantAttrs ""> |
|
| 75 |
|
|
| 76 |
<![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs " |
<!-- DTD "macros" --> |
|
METHODS NAMES #IMPLIED -- supported public methods of the object: |
|
|
TEXTSEARCH, GET, HEAD, ... -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkMethodAttrs ""> |
|
|
|
|
|
<!ENTITY % linkattributes |
|
|
"NAME %anchor-name #IMPLIED |
|
|
HREF %URI; #IMPLIED |
|
|
%linkRelAttrs; |
|
|
%linkRedundantAttrs; |
|
|
%linkMethodAttrs; |
|
|
"> |
|
| 77 |
|
|
| 78 |
|
<!ENTITY % heading "H1|H2|H3|H4|H5|H6"> |
| 79 |
|
|
| 80 |
<!-- Document Element --> |
<!ENTITY % list " UL | OL | DIR | MENU " > |
| 81 |
|
|
| 82 |
|
|
| 83 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<!--================ Character mnemonic entities ==========================--> |
|
<!ENTITY % obsolete-plaintext ""> |
|
|
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
|
|
<!ENTITY % end-isindex ""> |
|
| 84 |
|
|
| 85 |
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
<!ENTITY % ISOlat1 PUBLIC |
| 86 |
<!ELEMENT HTML O O (%html-content)> |
"-//IETF//ENTITIES Added Latin 1 for HTML//EN"> |
| 87 |
|
%ISOlat1; |
| 88 |
|
|
| 89 |
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
<!ENTITY amp CDATA "&" -- ampersand --> |
| 90 |
& NEXTID?"> ]]> |
<!ENTITY gt CDATA ">" -- greater than --> |
| 91 |
<!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?"> |
<!ENTITY lt CDATA "<" -- less than --> |
| 92 |
<!ELEMENT HEAD O O (%head-content)> |
<!ENTITY quot CDATA """ -- double quote --> |
| 93 |
|
|
|
<![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]> |
|
|
<!ENTITY % title-content "(#PCDATA)"> |
|
|
<!ELEMENT TITLE - - %title-content |
|
|
-- The TITLE element is not considered part of the flow of text. |
|
|
It should be displayed, for example as the page header or |
|
|
window title. |
|
|
--> |
|
| 94 |
|
|
| 95 |
<!ELEMENT ISINDEX - O EMPTY |
<!--=================== Text Markup =======================================--> |
|
-- WWW clients should offer the option to perform a search on |
|
|
documents containing ISINDEX. |
|
|
--> |
|
| 96 |
|
|
| 97 |
<!ELEMENT NEXTID - O EMPTY> |
<![ %HTML.Highlighting [ |
|
<!ATTLIST NEXTID N %anchor-name #REQUIRED |
|
|
-- The number should be a name suitable for use |
|
|
for the ID of a new element. When used, the value |
|
|
has its numeric part incremented. EG Z67 becomes Z68 |
|
|
--> |
|
|
<!ELEMENT LINK - O EMPTY> |
|
|
<!ATTLIST LINK |
|
|
%linkattributes> |
|
|
|
|
|
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
|
|
<!ATTLIST BASE |
|
| 98 |
|
|
| 99 |
HREF %URI; #IMPLIED |
<!ENTITY % font " TT | B | I "> |
| 100 |
|
|
| 101 |
> |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE "> |
| 102 |
|
|
| 103 |
<!ENTITY % font "TT | B | I | U "> |
<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font"> |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
|
| 104 |
|
|
| 105 |
<![ %HTML.font-phrase [ |
<!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase"> |
|
<!ENTITY % obsolete-font "| %font"> |
|
|
<!ENTITY % obsolete-phrase "| %phrase"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-font ""> |
|
|
<!ENTITY % obsolete-phrase ""> |
|
|
<![ %HTML.pSeparator [ |
|
|
<!ENTITY % obsolete-p "| P"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-p ""> |
|
| 106 |
|
|
| 107 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ELEMENT (%font;|%phrase) - - (%text)+> |
|
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
|
| 108 |
|
|
| 109 |
<![ %HTML.GO [ |
]]> |
|
<!ELEMENT GO - O EMPTY> |
|
|
<!ENTITY % go-text "| GO"> |
|
|
]]> |
|
|
<!ENTITY % go-text ""> |
|
| 110 |
|
|
| 111 |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %obsolete-p"> |
<!ENTITY % text "#PCDATA | A | IMG | BR"> |
| 112 |
|
|
| 113 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ELEMENT BR - O EMPTY> |
| 114 |
|
|
|
<![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]> |
|
|
<!ENTITY % font-content "#PCDATA"> |
|
|
<!ELEMENT (%font;) - - (%font-content;)> |
|
| 115 |
|
|
| 116 |
<!ELEMENT (%phrase;) - - (%htext)+> |
<!--================== Link Markup ========================================--> |
| 117 |
|
|
| 118 |
<!ENTITY % pre "PRE | XMP | LISTING"> |
<![ %HTML.Recommended [ |
| 119 |
|
<!ENTITY % linkName "ID"> |
| 120 |
|
]]> |
| 121 |
|
|
| 122 |
<![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]> |
<!ENTITY % linkName "CDATA"> |
|
<!ENTITY % block-form ""> |
|
| 123 |
|
|
| 124 |
<![ %HTML.pSeparator [ |
<!ENTITY % linkType "NAME" |
| 125 |
<!ENTITY % obsolete-htext "| %htext"> |
-- a list of these will be specified at a later date --> |
|
<!ENTITY % block-p ""> |
|
|
]]> |
|
|
<!ENTITY % obsolete-htext "| A"> |
|
|
<!ENTITY % block-p "| P "> |
|
| 126 |
|
|
| 127 |
<!ENTITY % block "HR | %list | DL |
<!ENTITY % linkExtraAttributes |
| 128 |
| %pre | BLOCKQUOTE | ADDRESS |
"REL %linkType #IMPLIED -- forward relationship type -- |
| 129 |
%block-form %block-p"> |
REV %linkType #IMPLIED -- reversed relationship type |
| 130 |
|
to referent data -- |
| 131 |
|
URN CDATA #IMPLIED -- universal resource number -- |
| 132 |
|
|
| 133 |
|
TITLE CDATA #IMPLIED -- advisory only -- |
| 134 |
|
METHODS NAMES #IMPLIED -- supported public methods of the object: |
| 135 |
|
TEXTSEARCH, GET, HEAD, ... -- |
| 136 |
|
"> |
| 137 |
|
|
| 138 |
<!ENTITY % body-content "%heading | %block | %htext"> |
<![ %HTML.Recommended [ |
| 139 |
<!ELEMENT BODY O O (%body-content)*> |
<!ENTITY % A.content "(%text)+" |
| 140 |
|
-- <H1><a name="xxx">Heading</a></H1> |
| 141 |
|
is preferred to |
| 142 |
|
<a name="xxx"><H1>Heading</H1></a> |
| 143 |
|
--> |
| 144 |
|
]]> |
| 145 |
|
|
| 146 |
|
<!ENTITY % A.content "(%heading|%text)+"> |
| 147 |
|
|
| 148 |
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
<!ELEMENT A - - %A.content -(A)> |
|
<!ENTITY % a-end "-"> |
|
| 149 |
|
|
|
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
|
|
-- @# Technically, this allows silliness like: |
|
|
<H2><A>xyz<H1>h1</H1></A></H2> |
|
|
The right way to do anchors outside of %htext is more like: |
|
|
<as id=z1><H2>lkjlkj</h2><ae start=z1> |
|
|
--> |
|
| 150 |
<!ATTLIST A |
<!ATTLIST A |
| 151 |
%linkattributes; |
HREF %URI #IMPLIED |
| 152 |
|
NAME %linkName #IMPLIED |
| 153 |
|
%linkExtraAttributes; |
| 154 |
> |
> |
| 155 |
|
|
| 156 |
|
<!--=================== Images ============================================--> |
| 157 |
|
|
| 158 |
|
<!ENTITY % img.alt.default "#IMPLIED" |
| 159 |
|
-- ALT attribute required in Level 0 docs --> |
| 160 |
|
|
| 161 |
<!ELEMENT IMG - O EMPTY -- Embedded image --> |
<!ELEMENT IMG - O EMPTY -- Embedded image --> |
| 162 |
<!ATTLIST IMG |
<!ATTLIST IMG |
| 163 |
SRC %URI; #IMPLIED -- URI of document to embed -- |
SRC %URI; #REQUIRED -- URI of document to embed -- |
| 164 |
ALT CDATA #IMPLIED |
ALT CDATA %img.alt.default; |
| 165 |
ALIGN (top|middle|bottom) #IMPLIED |
ALIGN (top|middle|bottom) #IMPLIED |
| 166 |
ISMAP (ISMAP) #IMPLIED |
ISMAP (ISMAP) #IMPLIED |
| 167 |
> |
> |
| 168 |
|
|
| 169 |
|
|
| 170 |
<![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]> |
<!--=================== Paragraphs=========================================--> |
| 171 |
<!ENTITY % p-content "(%htext)+"> |
|
| 172 |
<!ELEMENT P - O %p-content> |
<!ELEMENT P - O (%text)+> |
| 173 |
|
|
| 174 |
|
|
| 175 |
|
<!--=================== Headings, Titles, Sections ========================--> |
| 176 |
|
|
| 177 |
<!ELEMENT HR - O EMPTY -- horizontal rule --> |
<!ELEMENT HR - O EMPTY -- horizontal rule --> |
|
<!ELEMENT BR - O EMPTY -- @# BR -> &br; --> |
|
| 178 |
|
|
| 179 |
<!ELEMENT ( %heading ) - - (%htext;)+> |
<!ELEMENT ( %heading ) - - (%text;)+> |
| 180 |
|
|
| 181 |
|
<!ELEMENT TITLE - - (#PCDATA) |
| 182 |
|
-- The TITLE element is not considered part of the flow of text. |
| 183 |
|
It should be displayed, for example as the page header or |
| 184 |
|
window title. |
| 185 |
|
--> |
| 186 |
|
|
|
<!ELEMENT DL - - (DT*, DD?)+> |
|
|
<!ATTLIST DL |
|
|
COMPACT (COMPACT) #IMPLIED> |
|
| 187 |
|
|
| 188 |
<!ELEMENT DT - O (%htext)+> |
<!--=================== Text Flows ========================================--> |
|
<!ELEMENT DD - O (%htext|%block)+> |
|
| 189 |
|
|
| 190 |
<!ELEMENT (%list) - - (LI)+> |
<![ %HTML.Forms [ |
| 191 |
|
<!ENTITY % block.forms "| FORM | ISINDEX"> |
| 192 |
|
]]> |
| 193 |
|
|
| 194 |
<!ELEMENT LI - O (%htext|%block)+> |
<!ENTITY % block.forms ""> |
| 195 |
|
|
| 196 |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
<![ %HTML.Deprecated [ |
| 197 |
-- for quoting some other source --> |
<!ENTITY % preformatted "PRE | XMP | LISTING"> |
| 198 |
|
]]> |
| 199 |
|
|
| 200 |
<!ELEMENT ADDRESS - - (%htext;|%block)+> |
<!ENTITY % preformatted "PRE"> |
| 201 |
|
|
| 202 |
|
<!ENTITY % block "P | %list | DL |
| 203 |
|
| %preformatted |
| 204 |
|
| BLOCKQUOTE %block.forms"> |
| 205 |
|
|
| 206 |
|
<!ENTITY % flow "(%text|%block)*"> |
| 207 |
|
|
| 208 |
|
<!ENTITY % pre.content "#PCDATA | A | HR | BR"> |
| 209 |
|
<!ELEMENT PRE - - (%pre.content)+> |
| 210 |
|
|
|
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
|
| 211 |
<!ATTLIST PRE |
<!ATTLIST PRE |
| 212 |
WIDTH NUMBER #implied |
WIDTH NUMBER #implied |
| 213 |
> |
> |
| 214 |
|
|
| 215 |
<!-- Mnemonic character entities. --> |
<![ %HTML.Deprecated [ |
| 216 |
|
|
| 217 |
<!ENTITY % ISOlat1 PUBLIC |
<!ENTITY % literal "CDATA" |
| 218 |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
-- special non-conforming parsing mode where |
| 219 |
%ISOlat1; |
the only markup signal is the end tag |
| 220 |
|
in full |
| 221 |
|
--> |
| 222 |
|
|
| 223 |
|
<!ELEMENT XMP - - %literal> |
| 224 |
|
<!ELEMENT LISTING - - %literal> |
| 225 |
|
<!ELEMENT PLAINTEXT - O %literal> |
| 226 |
|
|
| 227 |
|
]]> |
| 228 |
|
|
| 229 |
|
|
| 230 |
|
<!--=================== Lists =============================================--> |
| 231 |
|
|
| 232 |
|
<!ELEMENT DL - - (DT*, DD?)+> |
| 233 |
|
<!ATTLIST DL |
| 234 |
|
COMPACT (COMPACT) #IMPLIED> |
| 235 |
|
|
| 236 |
|
<!ELEMENT DT - O (%text)+> |
| 237 |
|
<!ELEMENT DD - O %flow> |
| 238 |
|
|
| 239 |
|
<!ELEMENT (OL|UL) - - (LI)+> |
| 240 |
|
<!ELEMENT (DIR|MENU) - - (LI)+ -(%block)> |
| 241 |
|
<!ATTLIST (%list) |
| 242 |
|
COMPACT (COMPACT) #IMPLIED> |
| 243 |
|
|
| 244 |
|
<!ELEMENT LI - O %flow> |
| 245 |
|
|
| 246 |
|
<!--=================== Document Body =====================================--> |
| 247 |
|
|
| 248 |
|
<![ %HTML.Recommended [ |
| 249 |
|
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS)*"> |
| 250 |
|
-- <h1>Heading</h1> |
| 251 |
|
<p>Text ... |
| 252 |
|
is preferred to |
| 253 |
|
<h1>Heading</h1> |
| 254 |
|
Text ... |
| 255 |
|
--> |
| 256 |
|
]]> |
| 257 |
|
|
| 258 |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
<!ENTITY % body.content "(%heading | %text | %block | HR | ADDRESS)*"> |
|
<!ENTITY amp "&" -- ampersand --> |
|
|
<!ENTITY gt ">" -- greater than --> |
|
|
<!ENTITY lt "<" -- less than --> |
|
|
<!ENTITY quot """ -- less than --> |
|
|
<!ENTITY nbsp "<? nonbreaking-space>"> |
|
|
<!-- @# should add entites for processing instructions |
|
|
for line break, centering, etc. --> |
|
| 259 |
|
|
| 260 |
|
<!ELEMENT BODY O O %body.content> |
| 261 |
|
|
| 262 |
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
<!ELEMENT BLOCKQUOTE - - %body.content> |
|
<!ENTITY % lit-content "RCDATA"> |
|
|
<!ELEMENT (%literal) - - %lit-content> |
|
| 263 |
|
|
| 264 |
<![ %HTML.PLAINTEXT [ |
<![ %HTML.Recommended [ |
| 265 |
<!ELEMENT PLAINTEXT - O EMPTY> |
<!ENTITY % address.content "(%text)*"> |
| 266 |
]]> |
]]> |
| 267 |
|
<!ENTITY % address.content "(%text|P)*"> |
| 268 |
|
<!ELEMENT ADDRESS - - %address.content> |
| 269 |
|
|
| 270 |
|
|
| 271 |
|
<!--================ Forms ===============================================--> |
| 272 |
|
|
| 273 |
<!-- Forms --> |
<![ %HTML.Forms [ |
|
<![ %HTML.forms [ |
|
| 274 |
|
|
| 275 |
<!ENTITY % HTTP-Method "(GET | POST)"> |
<!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)> |
|
<!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)> |
|
| 276 |
<!ATTLIST FORM |
<!ATTLIST FORM |
| 277 |
ACTION %URI #REQUIRED |
ACTION %URI #REQUIRED |
| 278 |
METHOD %HTTP-Method #IMPLIED -- @# MAILTO? -- |
METHOD (%HTTP-Method) GET |
| 279 |
ENCTYPE %Content-Type; #IMPLIED |
ENCTYPE %Content-Type; "application/x-www-form-urlencoded" |
| 280 |
> |
> |
| 281 |
|
|
| 282 |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
| 284 |
IMAGE | HIDDEN )"> |
IMAGE | HIDDEN )"> |
| 285 |
<!ELEMENT INPUT - O EMPTY> |
<!ELEMENT INPUT - O EMPTY> |
| 286 |
<!ATTLIST INPUT |
<!ATTLIST INPUT |
| 287 |
TYPE %InputType #IMPLIED -- @# defaults to TEXT?? -- |
TYPE %InputType TEXT |
| 288 |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
| 289 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
| 290 |
SRC %URI #IMPLIED -- for image inputs -- |
SRC %URI #IMPLIED -- for image inputs -- |
| 291 |
CHECKED (CHECKED) #IMPLIED |
CHECKED (CHECKED) #IMPLIED |
| 292 |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
SIZE CDATA #IMPLIED -- like NUMBERS, |
| 293 |
|
but delimited with comma, not space -- |
| 294 |
MAXLENGTH NUMBER #IMPLIED |
MAXLENGTH NUMBER #IMPLIED |
| 295 |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
ALIGN (top|middle|bottom) #IMPLIED |
| 296 |
> |
> |
| 297 |
|
|
| 298 |
<!ELEMENT SELECT - - (OPTION+)> |
<!ELEMENT SELECT - - (OPTION+)> |
| 311 |
<!ELEMENT TEXTAREA - - (#PCDATA)> |
<!ELEMENT TEXTAREA - - (#PCDATA)> |
| 312 |
<!ATTLIST TEXTAREA |
<!ATTLIST TEXTAREA |
| 313 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
| 314 |
ROWS NUMBER #REQUIRED -- @#implied? -- |
ROWS NUMBER #REQUIRED |
| 315 |
COLS NUMBER #REQUIRED |
COLS NUMBER #REQUIRED |
| 316 |
> |
> |
| 317 |
|
|
| 318 |
|
]]> |
| 319 |
|
|
| 320 |
|
|
| 321 |
|
<!--================ Document Head ========================================--> |
| 322 |
|
|
| 323 |
|
<!ENTITY % head.link "& LINK*"> |
| 324 |
|
|
| 325 |
|
<![ %HTML.Recommended [ |
| 326 |
|
<!ENTITY % head.nextid ""> |
| 327 |
|
]]> |
| 328 |
|
<!ENTITY % head.nextid "& NEXTID?"> |
| 329 |
|
|
| 330 |
|
<!ENTITY % head.content "TITLE & ISINDEX? & BASE? & META* |
| 331 |
|
%head.nextid |
| 332 |
|
%head.link"> |
| 333 |
|
|
| 334 |
|
<!ELEMENT HEAD O O (%head.content)> |
| 335 |
|
|
| 336 |
|
<!ELEMENT LINK - O EMPTY> |
| 337 |
|
<!ATTLIST LINK |
| 338 |
|
HREF %URI #REQUIRED |
| 339 |
|
%linkExtraAttributes; > |
| 340 |
|
|
| 341 |
|
<!ELEMENT ISINDEX - O EMPTY> |
| 342 |
|
|
| 343 |
|
<!ELEMENT BASE - O EMPTY> |
| 344 |
|
<!ATTLIST BASE |
| 345 |
|
HREF %URI; #REQUIRED |
| 346 |
|
> |
| 347 |
|
|
| 348 |
|
<!ELEMENT NEXTID - O EMPTY> |
| 349 |
|
<!ATTLIST NEXTID N %linkName #REQUIRED> |
| 350 |
|
|
| 351 |
|
<!ELEMENT META - O EMPTY -- Generic Metainformation --> |
| 352 |
|
<!ATTLIST META |
| 353 |
|
HTTP-EQUIV NAME #IMPLIED -- HTTP response header name -- |
| 354 |
|
NAME NAME #IMPLIED -- metainformation name -- |
| 355 |
|
CONTENT CDATA #REQUIRED -- associated information -- |
| 356 |
|
> |
| 357 |
|
|
| 358 |
|
|
| 359 |
|
<!--================ Document Structure ===================================--> |
| 360 |
|
|
| 361 |
|
<![ %HTML.Deprecated [ |
| 362 |
|
<!ENTITY % html.content "HEAD, BODY, PLAINTEXT?"> |
| 363 |
]]> |
]]> |
| 364 |
|
<!ENTITY % html.content "HEAD, BODY"> |
| 365 |
|
|
| 366 |
|
<!ELEMENT HTML O O (%html.content)> |
| 367 |
|
<!ENTITY % version.attr "VERSION CDATA #FIXED "%HTML.Version;""> |
| 368 |
|
|
| 369 |
|
<!ATTLIST HTML |
| 370 |
|
%version.attr;-- report DTD version to application -- |
| 371 |
|
> |
| 372 |
|
|
| 373 |
|
|