1 |
connolly |
1.2 |
<!SGML "ISO 8879:1986" |
2 |
|
|
-- |
3 |
|
|
Document Type Definition for the HyperText Markup Language |
4 |
|
|
as used by the World Wide Web application (HTML DTD). |
5 |
|
|
|
6 |
|
|
NOTE: This is a definition of HTML with respect to |
7 |
|
|
SGML, and assumes an understaning of SGML terms. |
8 |
|
|
|
9 |
|
|
For a description of HTML in layman's terms, see |
10 |
|
|
|
11 |
|
|
"HTML: A Representation for Nodes in the World Wide Web" |
12 |
|
|
by Dan Connolly. |
13 |
|
|
|
14 |
|
|
aka |
15 |
|
|
|
16 |
|
|
http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html |
17 |
|
|
by <connolly@convex.com> |
18 |
|
|
-- |
19 |
|
|
|
20 |
|
|
CHARSET |
21 |
|
|
BASESET "ISO 646:1983//CHARSET |
22 |
|
|
International Reference Version (IRV)//ESC 2/5 4/0" |
23 |
|
|
DESCSET 0 9 UNUSED |
24 |
|
|
9 2 9 |
25 |
|
|
11 2 UNUSED |
26 |
|
|
13 1 13 |
27 |
|
|
14 18 UNUSED |
28 |
|
|
32 95 32 |
29 |
|
|
127 1 UNUSED |
30 |
|
|
|
31 |
|
|
CAPACITY SGMLREF |
32 |
|
|
TOTALCAP 150000 |
33 |
|
|
GRPCAP 150000 |
34 |
|
|
|
35 |
|
|
SCOPE DOCUMENT |
36 |
|
|
SYNTAX |
37 |
|
|
SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
38 |
|
|
19 20 21 22 23 24 25 26 27 28 29 30 31 127 255 |
39 |
|
|
BASESET "ISO 646:1983//CHARSET |
40 |
|
|
International Reference Version (IRV)//ESC 2/5 4/0" |
41 |
|
|
DESCSET 0 128 0 |
42 |
|
|
FUNCTION RE 13 |
43 |
|
|
RS 10 |
44 |
|
|
SPACE 32 |
45 |
|
|
TAB SEPCHAR 9 |
46 |
|
|
NAMING LCNMSTRT "" |
47 |
|
|
UCNMSTRT "" |
48 |
|
|
LCNMCHAR ".-" |
49 |
|
|
UCNMCHAR ".-" |
50 |
|
|
NAMECASE GENERAL YES |
51 |
|
|
ENTITY NO |
52 |
|
|
DELIM GENERAL SGMLREF |
53 |
|
|
SHORTREF SGMLREF |
54 |
|
|
NAMES SGMLREF |
55 |
|
|
QUANTITY SGMLREF |
56 |
|
|
NAMELEN 34 |
57 |
|
|
TAGLVL 100 |
58 |
|
|
LITLEN 1024 |
59 |
|
|
GRPGTCNT 150 |
60 |
|
|
GRPCNT 64 |
61 |
|
|
|
62 |
|
|
FEATURES |
63 |
|
|
MINIMIZE |
64 |
|
|
DATATAG NO |
65 |
connolly |
1.3 |
OMITTAG NO |
66 |
connolly |
1.2 |
RANK NO |
67 |
|
|
SHORTTAG NO |
68 |
|
|
LINK |
69 |
|
|
SIMPLE NO |
70 |
|
|
IMPLICIT NO |
71 |
|
|
EXPLICIT NO |
72 |
|
|
OTHER |
73 |
|
|
CONCUR NO |
74 |
|
|
SUBDOC NO |
75 |
connolly |
1.3 |
FORMAL YES |
76 |
connolly |
1.2 |
APPINFO NONE |
77 |
|
|
> |
78 |
|
|
|
79 |
|
|
<!DOCTYPE HTML [ |
80 |
|
|
<!-- |
81 |
connolly |
1.3 |
$Id: html.dtd,v 1.3 93/01/06 18:38:10 connolly Exp $ |
82 |
connolly |
1.2 |
--> |
83 |
|
|
|
84 |
|
|
<!-- Regarding clause 6.1, SGML Document: |
85 |
|
|
|
86 |
|
|
[1] SGML document = SGML document entity, |
87 |
|
|
(SGML subdocument entity | |
88 |
|
|
SGML text entity | non-SGML data entity)* |
89 |
|
|
|
90 |
|
|
The role of SGML document entity is filled by this DTD, |
91 |
|
|
followed by the conventional HTML data stream. |
92 |
|
|
--> |
93 |
|
|
|
94 |
connolly |
1.3 |
<!-- DTD definitions --> |
95 |
|
|
|
96 |
connolly |
1.2 |
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
97 |
|
|
<!ENTITY % list "UL|OL|DIR|MENU"> |
98 |
|
|
<!ENTITY % literal "XMP|LISTING"> |
99 |
|
|
|
100 |
|
|
<!ENTITY % headelement |
101 |
|
|
"TITLE | NEXTID | ISINDEX" > |
102 |
|
|
|
103 |
|
|
<!ENTITY % bodyelement |
104 |
connolly |
1.3 |
"P | A | %heading | |
105 |
|
|
%list | DL | HEADERS | ADDRESS | PRE | BLOCKQUOTE |
106 |
|
|
| %literal"> |
107 |
|
|
|
108 |
|
|
<!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA"> |
109 |
|
|
|
110 |
|
|
<!-- Characters from various Latin alphabets. --> |
111 |
|
|
<!ENTITY % ISOlat1 PUBLIC |
112 |
|
|
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
113 |
|
|
%ISOlat1; |
114 |
|
|
|
115 |
connolly |
1.2 |
|
116 |
connolly |
1.3 |
<!-- Document Element --> |
117 |
connolly |
1.2 |
|
118 |
connolly |
1.3 |
<!ELEMENT HTML O O (HEAD | BODY | %oldstyle)*> |
119 |
connolly |
1.2 |
|
120 |
|
|
<!ELEMENT HEAD - - (TITLE? & ISINDEX? & NEXTID?)> |
121 |
connolly |
1.3 |
<!-- LINK element (from timbl) --> |
122 |
|
|
<!ATTLIST HEAD |
123 |
|
|
EXPIRES NUMBER #IMPLIED -- expiration date |
124 |
|
|
in ISO format: yyyymmddhhmmssZ -- |
125 |
|
|
> |
126 |
connolly |
1.2 |
|
127 |
connolly |
1.3 |
<!ELEMENT TITLE - - RCDATA |
128 |
connolly |
1.2 |
-- The TITLE element is not considered part of the flow of text. |
129 |
|
|
It should be displayed, for example as the page header or |
130 |
|
|
window title. |
131 |
|
|
--> |
132 |
|
|
|
133 |
|
|
<!ELEMENT ISINDEX - O EMPTY |
134 |
|
|
-- WWW clients should offer the option to perform a search on |
135 |
|
|
documents containing ISINDEX. |
136 |
|
|
--> |
137 |
|
|
|
138 |
|
|
<!ELEMENT NEXTID - O EMPTY> |
139 |
|
|
<!ATTLIST NEXTID N NUMBER #REQUIRED |
140 |
|
|
-- The number should be the highest number that appears in |
141 |
|
|
any NAME attribute in the document. |
142 |
|
|
--> |
143 |
|
|
|
144 |
connolly |
1.3 |
<!ENTITY % inline "EM | TT | STRONG | B | I | U | |
145 |
|
|
CODE | SAMP | KBD | KEY | VAR | DFN | CITE " |
146 |
|
|
> |
147 |
|
|
|
148 |
|
|
<!ELEMENT (%inline;) - - (#PCDATA)> |
149 |
|
|
|
150 |
|
|
<!ENTITY % text "#PCDATA | %inline;"> |
151 |
|
|
|
152 |
|
|
<!ELEMENT BODY - - (%bodyelement|%text;)*> |
153 |
|
|
|
154 |
connolly |
1.2 |
<!ENTITY % URL "CDATA" |
155 |
|
|
-- The term URL means a CDATA attribute |
156 |
|
|
whose value is a Universal Resource Locator, |
157 |
|
|
as defined in ftp://info.cern.ch/pub/www/doc/url3.txt |
158 |
|
|
--> |
159 |
|
|
|
160 |
|
|
<!ELEMENT A - - (#PCDATA)> |
161 |
|
|
<!ATTLIST A |
162 |
|
|
NAME NMTOKEN #IMPLIED |
163 |
|
|
HREF %URL; #IMPLIED |
164 |
connolly |
1.3 |
TYPE NAME #IMPLIED -- type of relashionship to referent data: |
165 |
|
|
PARENT CHILD, SIBLING, NEXT, TOP, |
166 |
|
|
DEFINITION, UPDATE, ORIGINAL etc. -- |
167 |
|
|
URN CDATA #IMPLIED -- universal resource number. unique doc id -- |
168 |
|
|
TITLE CDATA #IMPLIED -- advisory only -- |
169 |
|
|
METHODS NAMES #IMPLIED -- supported methods of the object: |
170 |
|
|
TEXTSEARCH, GET, HEAD, ... -- |
171 |
connolly |
1.2 |
> |
172 |
|
|
|
173 |
connolly |
1.3 |
<!ELEMENT P - O EMPTY -- separates paragraphs --> |
174 |
connolly |
1.2 |
|
175 |
connolly |
1.3 |
<!ELEMENT (%heading) - - (%text;|A)+> |
176 |
connolly |
1.2 |
|
177 |
connolly |
1.3 |
<!ELEMENT HEADERS - - (DT | #PCDATA | DD | A)+> |
178 |
|
|
<!ELEMENT DL - - (DT | DD | A | P | %text;)*> |
179 |
|
|
<!-- Content should match ((DT,(A|%text;)+)+,(DD,(A|%text;)+)) |
180 |
connolly |
1.2 |
But mixed content is messy. |
181 |
|
|
--> |
182 |
|
|
|
183 |
|
|
<!ELEMENT DT - O EMPTY> |
184 |
|
|
<!ELEMENT DD - O EMPTY> |
185 |
|
|
|
186 |
connolly |
1.3 |
<!ELEMENT (%list) - - (%text;|LI|A|P)+> |
187 |
|
|
<!-- Content should match ((LI,(A|%text;)+)+) |
188 |
connolly |
1.2 |
But mixed content is messy. |
189 |
|
|
--> |
190 |
connolly |
1.3 |
<!ATTLIST (%list) |
191 |
|
|
STYLE NAME #IMPLIED -- COMPACT, etc.-- |
192 |
|
|
> |
193 |
connolly |
1.2 |
|
194 |
|
|
<!ELEMENT LI - O EMPTY> |
195 |
|
|
|
196 |
connolly |
1.3 |
<!ELEMENT BLOCKQUOTE - - (%text;|A|P|ADDRESS)+ |
197 |
|
|
-- for quoting some other source --> |
198 |
|
|
<!ATTLIST BLOCKQUOTE |
199 |
|
|
SOURCE CDATA #IMPLIED |
200 |
|
|
> |
201 |
|
|
|
202 |
|
|
<!ELEMENT ADDRESS - - (%text;|A|P)+> |
203 |
connolly |
1.2 |
|
204 |
|
|
<!ELEMENT PRE - - (#PCDATA|A|P)+> |
205 |
|
|
<!ATTLIST PRE |
206 |
connolly |
1.3 |
WIDTH NUMBER #implied |
207 |
connolly |
1.2 |
> |
208 |
|
|
|
209 |
connolly |
1.3 |
<!-- deprecated elements --> |
210 |
|
|
|
211 |
|
|
<!ELEMENT (%literal) - - RCDATA> |
212 |
connolly |
1.2 |
|
213 |
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
214 |
|
|
|
215 |
connolly |
1.3 |
<!-- Local Variables: --> |
216 |
|
|
<!-- mode: sgml --> |
217 |
|
|
<!-- compile-command: "sgmls -s -p " --> |
218 |
|
|
<!-- end: --> |
219 |
connolly |
1.2 |
]> |