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 application (HTML DTD). |
5 |
|
|
6 |
$Id$ |
$Id$ |
7 |
--> |
--> |
8 |
|
|
9 |
|
|
10 |
<!-- DTD definitions --> |
<!-- DTD definitions --> |
11 |
|
|
12 |
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
13 |
<!ENTITY % list " UL | OL | DIR | MENU "> |
<!ENTITY % list " UL | OL | DIR | MENU "> |
14 |
<!ENTITY % literal " XMP | LISTING "> |
<!ENTITY % literal " XMP | LISTING "> |
15 |
|
|
|
<!ENTITY % headelement |
|
|
" TITLE | NEXTID |ISINDEX" > |
|
|
|
|
16 |
<!ENTITY % bodyelement |
<!ENTITY % bodyelement |
17 |
"P | HR | %heading | |
"P | HR | %heading | |
18 |
%list | DL | ADDRESS | PRE | BLOCKQUOTE |
%list | DL | ADDRESS | PRE | BLOCKQUOTE |
19 |
| %literal"> |
| %literal"> |
20 |
|
|
|
<!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA"> |
|
|
|
|
21 |
<!ENTITY % URL "CDATA" |
<!ENTITY % URL "CDATA" |
22 |
-- The term URL means a CDATA attribute |
-- The term URL means a CDATA attribute |
23 |
whose value is a Uniform Resource Locator, |
whose value is a Uniform Resource Locator, |
46 |
|
|
47 |
<!-- Document Element --> |
<!-- Document Element --> |
48 |
|
|
49 |
<!ELEMENT HTML O O (( HEAD | BODY | %oldstyle )*, PLAINTEXT?)> |
<!ELEMENT HTML O O (HEAD, BODY)> |
50 |
|
|
51 |
<!ELEMENT HEAD - - ( TITLE? & ISINDEX? & NEXTID? & LINK* |
<!ELEMENT HEAD O O ( TITLE? & ISINDEX? & NEXTID? & LINK* |
52 |
& BASE?)> |
& BASE?)> |
53 |
|
|
54 |
<!ELEMENT TITLE - - RCDATA |
<!ELEMENT TITLE - - (#PCDATA) |
55 |
-- The TITLE element is not considered part of the flow of text. |
-- The TITLE element is not considered part of the flow of text. |
56 |
It should be displayed, for example as the page header or |
It should be displayed, for example as the page header or |
57 |
window title. |
window title. |
62 |
documents containing ISINDEX. |
documents containing ISINDEX. |
63 |
--> |
--> |
64 |
|
|
|
<!ELEMENT NEXTID - O EMPTY> |
|
|
<!ATTLIST NEXTID N 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 |
|
|
--> |
|
65 |
<!ELEMENT LINK - O EMPTY> |
<!ELEMENT LINK - O EMPTY> |
66 |
<!ATTLIST LINK |
<!ATTLIST LINK |
67 |
%linkattributes> |
%linkattributes> |
72 |
HREF %URL; #IMPLIED |
HREF %URL; #IMPLIED |
73 |
|
|
74 |
> |
> |
75 |
<!ENTITY % inline "EM | TT | STRONG | B | I | U | |
<!ENTITY % inline "EM | STRONG | |
76 |
CODE | SAMP | KBD | KEY | VAR | DFN | CITE " |
CODE | SAMP | KBD | KEY | VAR | DFN | CITE " |
77 |
> |
> |
78 |
|
|
79 |
<!ELEMENT (%inline;) - - (#PCDATA)> |
<!ELEMENT (%inline;) - - (#PCDATA | A)+> |
80 |
|
|
81 |
<!ENTITY % text "#PCDATA | IMG | %inline;"> |
<!ENTITY % text "#PCDATA | IMG | %inline; | BR"> |
82 |
|
|
83 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
84 |
|
|
87 |
| PRE | BLOCKQUOTE |
| PRE | BLOCKQUOTE |
88 |
| %literal | %htext"> |
| %literal | %htext"> |
89 |
|
|
90 |
|
<!ENTITY % block -- as htext but also nested structure -- |
91 |
|
"P | HR | %list | DL |
92 |
|
| PRE | BLOCKQUOTE |
93 |
|
| %literal"> |
94 |
|
|
95 |
|
|
96 |
<!ELEMENT BODY - - (%bodyelement|%htext;)*> |
<!ELEMENT BODY O O (%heading | %block)+> |
97 |
|
|
98 |
|
|
99 |
<!ELEMENT A - - (%text)> |
<!ELEMENT A - - ANY> |
100 |
<!ATTLIST A |
<!ATTLIST A |
101 |
%linkattributes; |
%linkattributes; |
102 |
> |
> |
107 |
> |
> |
108 |
|
|
109 |
|
|
110 |
<!ELEMENT P - O EMPTY -- separates paragraphs --> |
<!ELEMENT P - O (%htext)+ -- paragraph --> |
111 |
<!ELEMENT HR - O EMPTY -- horizontal rule --> |
<!ELEMENT (HR|BR) - O EMPTY -- horizontal rule --> |
112 |
|
|
113 |
<!ELEMENT ( %heading ) - - (%htext;)+> |
<!ELEMENT ( %heading ) - - (%htext;)+> |
114 |
|
|
115 |
<!ELEMENT DL - - (DT | DD | %stext;)*> |
<!ELEMENT DL - - (DT+, DD)+> |
116 |
<!-- Content should match ((DT,(%htext;)+)+,(DD,(%stext;)+)) |
<!-- structured DL's |
|
But mixed content is messy. -Dan Connolly |
|
117 |
--> |
--> |
118 |
|
|
119 |
<!ELEMENT DT - O EMPTY> |
<!ELEMENT DT - O (%htext)+> |
120 |
<!ELEMENT DD - O EMPTY> |
<!ELEMENT DD - O (%htext|%block)+> |
121 |
|
|
122 |
|
<!ELEMENT (%list) - - (LI)+> |
123 |
|
|
|
<!ELEMENT (UL|OL) - - (%htext;|LI|P)+> |
|
|
<!ELEMENT (DIR|MENU) - - (%htext;|LI)+> |
|
|
<!-- Content should match ((LI,(%htext;)+)+) |
|
|
But mixed content is messy. |
|
|
--> |
|
124 |
<!ATTLIST (%list) |
<!ATTLIST (%list) |
125 |
COMPACT NAME #IMPLIED -- COMPACT, etc.-- |
COMPACT NAME #IMPLIED -- COMPACT, etc.-- |
126 |
> |
> |
127 |
|
|
128 |
<!ELEMENT LI - O EMPTY> |
<!ELEMENT LI - O (%htext|%block)+> |
129 |
|
|
130 |
<!ELEMENT BLOCKQUOTE - - (%htext;|P)+ |
<!ELEMENT BLOCKQUOTE - - (P+, ADDRESS?)+ |
131 |
-- for quoting some other source --> |
-- for quoting some other source --> |
132 |
|
|
133 |
<!ELEMENT ADDRESS - - (%htext;|P)+> |
<!ELEMENT ADDRESS - - (%htext;)+> |
134 |
|
|
135 |
<!ELEMENT PRE - - (#PCDATA|%inline|A|P)+> |
<!ELEMENT PRE - - (#PCDATA | TT | B | I | U | A | P | BR)+> |
136 |
<!ATTLIST PRE |
<!ATTLIST PRE |
137 |
WIDTH NUMBER #implied |
WIDTH NUMBER #implied |
138 |
> |
> |
139 |
|
|
140 |
<!-- Mnemonic character entities. --> |
<!-- Mnemonic character entities. --> |
141 |
<!ENTITY AElig "Æ" -- capital AE diphthong (ligature) --> |
|
142 |
<!ENTITY Aacute "Á" -- capital A, acute accent --> |
<!ENTITY % ISOlat1 PUBLIC |
143 |
<!ENTITY Acirc "Â" -- capital A, circumflex accent --> |
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
144 |
<!ENTITY Agrave "À" -- capital A, grave accent --> |
%ISOlat1; |
145 |
<!ENTITY Aring "Å" -- capital A, ring --> |
|
|
<!ENTITY Atilde "Ã" -- capital A, tilde --> |
|
|
<!ENTITY Auml "Ä" -- capital A, dieresis or umlaut mark --> |
|
|
<!ENTITY Ccedil "Ç" -- capital C, cedilla --> |
|
|
<!ENTITY ETH "Ð" -- capital Eth, Icelandic --> |
|
|
<!ENTITY Eacute "É" -- capital E, acute accent --> |
|
|
<!ENTITY Ecirc "Ê" -- capital E, circumflex accent --> |
|
|
<!ENTITY Egrave "È" -- capital E, grave accent --> |
|
|
<!ENTITY Euml "Ë" -- capital E, dieresis or umlaut mark --> |
|
|
<!ENTITY Iacute "Í" -- capital I, acute accent --> |
|
|
<!ENTITY Icirc "Î" -- capital I, circumflex accent --> |
|
|
<!ENTITY Igrave "Ì" -- capital I, grave accent --> |
|
|
<!ENTITY Iuml "Ï" -- capital I, dieresis or umlaut mark --> |
|
|
<!ENTITY Ntilde "Ñ" -- capital N, tilde --> |
|
|
<!ENTITY Oacute "Ó" -- capital O, acute accent --> |
|
|
<!ENTITY Ocirc "Ô" -- capital O, circumflex accent --> |
|
|
<!ENTITY Ograve "Ò" -- capital O, grave accent --> |
|
|
<!ENTITY Oslash "Ø" -- capital O, slash --> |
|
|
<!ENTITY Otilde "Õ" -- capital O, tilde --> |
|
|
<!ENTITY Ouml "Ö" -- capital O, dieresis or umlaut mark --> |
|
|
<!ENTITY THORN "Þ" -- capital THORN, Icelandic --> |
|
|
<!ENTITY Uacute "Ú" -- capital U, acute accent --> |
|
|
<!ENTITY Ucirc "Û" -- capital U, circumflex accent --> |
|
|
<!ENTITY Ugrave "Ù" -- capital U, grave accent --> |
|
|
<!ENTITY Uuml "Ü" -- capital U, dieresis or umlaut mark --> |
|
|
<!ENTITY Yacute "Ý" -- capital Y, acute accent --> |
|
|
<!ENTITY aacute "á" -- small a, acute accent --> |
|
|
<!ENTITY acirc "â" -- small a, circumflex accent --> |
|
|
<!ENTITY aelig "æ" -- small ae diphthong (ligature) --> |
|
|
<!ENTITY agrave "à" -- small a, grave accent --> |
|
146 |
<!ENTITY amp "&" -- ampersand --> |
<!ENTITY amp "&" -- ampersand --> |
|
<!ENTITY aring "å" -- small a, ring --> |
|
|
<!ENTITY atilde "ã" -- small a, tilde --> |
|
|
<!ENTITY auml "ä" -- small a, dieresis or umlaut mark --> |
|
|
<!ENTITY ccedil "ç" -- small c, cedilla --> |
|
|
<!ENTITY eacute "é" -- small e, acute accent --> |
|
|
<!ENTITY ecirc "ê" -- small e, circumflex accent --> |
|
|
<!ENTITY egrave "è" -- small e, grave accent --> |
|
|
<!ENTITY eth "ð" -- small eth, Icelandic --> |
|
|
<!ENTITY euml "ë" -- small e, dieresis or umlaut mark --> |
|
147 |
<!ENTITY gt ">" -- greater than --> |
<!ENTITY gt ">" -- greater than --> |
|
<!ENTITY iacute "í" -- small i, acute accent --> |
|
|
<!ENTITY icirc "î" -- small i, circumflex accent --> |
|
|
<!ENTITY igrave "ì" -- small i, grave accent --> |
|
|
<!ENTITY iuml "ï" -- small i, dieresis or umlaut mark --> |
|
148 |
<!ENTITY lt "<" -- less than --> |
<!ENTITY lt "<" -- less than --> |
149 |
<!ENTITY nbsp " " -- should be NON_BREAKING space --> |
<!ENTITY nbsp " " -- @@should be NON_BREAKING space --> |
150 |
<!ENTITY ntilde "ñ" -- small n, tilde --> |
<!-- @@ should add entites for processing instructions |
151 |
<!ENTITY oacute "ó" -- small o, acute accent --> |
for line break, centering, etc. --> |
|
<!ENTITY ocirc "ô" -- small o, circumflex accent --> |
|
|
<!ENTITY ograve "ò" -- small o, grave accent --> |
|
|
<!ENTITY oslash "ø" -- small o, slash --> |
|
|
<!ENTITY otilde "õ" -- small o, tilde --> |
|
|
<!ENTITY ouml "ö" -- small o, dieresis or umlaut mark --> |
|
|
<!ENTITY szlig "ß" -- small sharp s, German (sz ligature) --> |
|
|
<!ENTITY thorn "þ" -- small thorn, Icelandic --> |
|
|
<!ENTITY uacute "ú" -- small u, acute accent --> |
|
|
<!ENTITY ucirc "û" -- small u, circumflex accent --> |
|
|
<!ENTITY ugrave "ù" -- small u, grave accent --> |
|
|
<!ENTITY uuml "ü" -- small u, dieresis or umlaut mark --> |
|
|
<!ENTITY yacute "ý" -- small y, acute accent --> |
|
|
<!ENTITY yuml "ÿ" -- small y, dieresis or umlaut mark --> |
|
152 |
|
|
153 |
<!-- deprecated elements --> |
<!-- deprecated elements --> |
154 |
|
|
156 |
|
|
157 |
<!ELEMENT PLAINTEXT - O EMPTY> |
<!ELEMENT PLAINTEXT - O EMPTY> |
158 |
|
|
|
<!-- Local Variables: --> |
|
|
<!-- mode: sgml --> |
|
|
<!-- compile-command: "sgmls -s -p " --> |
|
|
<!-- end: --> |
|