/[pub]/test/html.dtd
Suika

Contents of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.27 - (show annotations) (download)
Thu Jun 15 20:17:03 1995 UTC (28 years, 10 months ago) by connolly
Branch: MAIN
Changes since 1.26: +7 -18 lines
* changed HEAD content model to allow sprinkled LINK, META

* included   in character table

* discussion of INPUT tag turned inside out: organized by TYPE now.
  Added (and tested) several examples.

* Moved security considerations out of MIME section into its own section.

* moved TOC after abstract

* moved TERMS after Intro

* TEXTAREA added to lots of places that mention PRE as preformatted

* ISO-8859-1 doesn't include control characters, so the coded
  character set that I was calling ISO-8859-1 is now just
  called the HTML document character set, which includes ISO-8859-1.

* Discussed level 2 in user agent conformance section

* Added some detailed references to sections of the SGML spec
  where HTML syntax details were lacking.

* Some verbiage about block structuring elements clarified
	(headings are not block structuring elements)

* Cleared up NAMELEN and LITLEN verbiage by pointing to the decl

* Explained feature test entities a little better

* Added a little verbiage about link METHODS and URNs

* BASE verbiage clarified

* META verbiage fixed

* NEXTID toned down

* added verbiage about DT, DD when they don't occur in pairs

* fixed hyperlink terminology in Terms section

* Various editorial wording changes as per peer review

* em dashes fixed

1 <!-- html.dtd
2
3 Document Type Definition for the HyperText Markup Language
4 (HTML DTD)
5
6 $Id: html.dtd,v 1.26 1995/06/02 08:00:02 connolly Exp $
7
8 Author: Daniel W. Connolly <connolly@w3.org>
9 See Also: html.decl, html-1.dtd
10 http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html
11 -->
12
13 <!ENTITY % HTML.Version
14 "-//IETF//DTD HTML 2.0//EN"
15
16 -- Typical usage:
17
18 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
19 <html>
20 ...
21 </html>
22 --
23 >
24
25
26 <!--============ Feature Test Entities ========================-->
27
28 <!ENTITY % HTML.Recommended "IGNORE"
29 -- Certain features of the language are necessary for
30 compatibility with widespread usage, but they may
31 compromise the structural integrity of a document.
32 This feature test entity enables a more prescriptive
33 document type definition that eliminates
34 those features.
35 -->
36
37 <![ %HTML.Recommended [
38 <!ENTITY % HTML.Deprecated "IGNORE">
39 ]]>
40
41 <!ENTITY % HTML.Deprecated "INCLUDE"
42 -- Certain features of the language are necessary for
43 compatibility with earlier versions of the specification,
44 but they tend to be used an implemented inconsistently,
45 and their use is deprecated. This feature test entity
46 enables a document type definition that eliminates
47 these features.
48 -->
49
50 <!ENTITY % HTML.Highlighting "INCLUDE"
51 -- Use this feature test entity to validate that a
52 document uses no highlighting tags, which may be
53 ignored on minimal implementations.
54 -->
55
56 <!ENTITY % HTML.Forms "INCLUDE"
57 -- Use this feature test entity to validate that a document
58 contains no forms, which may not be supported in minimal
59 implementations
60 -->
61
62 <!--============== Imported Names ==============================-->
63
64 <!ENTITY % Content-Type "CDATA"
65 -- meaning an internet media type
66 (aka MIME content type, as per RFC1521)
67 -->
68
69 <!ENTITY % HTTP-Method "GET | POST"
70 -- as per HTTP specification, in progress
71 -->
72
73 <!ENTITY % URI "CDATA"
74 -- The term URI means a CDATA attribute
75 whose value is a Uniform Resource Identifier,
76 as defined by
77 "Universal Resource Identifiers" by Tim Berners-Lee
78 aka RFC 1630
79
80 Note that CDATA attributes are limited by the LITLEN
81 capacity (1024 in the current version of html.decl),
82 so that URIs in HTML have a bounded length.
83
84 -->
85
86
87 <!--========= DTD "Macros" =====================-->
88
89 <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
90
91 <!ENTITY % list " UL | OL | DIR | MENU " >
92
93
94 <!--======= Character mnemonic entities =================-->
95
96 <!ENTITY % ISOlat1 PUBLIC
97 "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
98 %ISOlat1;
99
100 <!ENTITY amp CDATA "&#38;" -- ampersand -->
101 <!ENTITY gt CDATA "&#62;" -- greater than -->
102 <!ENTITY lt CDATA "&#60;" -- less than -->
103 <!ENTITY quot CDATA "&#34;" -- double quote -->
104
105
106 <!--========= SGML Document Access (SDA) Parameter Entities =====-->
107
108 <!-- HTML 2.0 contains SGML Document Access (SDA) fixed attributes
109 in support of easy transformation to the International Committee
110 for Accessible Document Design (ICADD) DTD
111 "-//EC-USA-CDA/ICADD//DTD ICADD22//EN".
112 ICADD applications are designed to support usable access to
113 structured information by print-impaired individuals through
114 Braille, large print and voice synthesis. For more information on
115 SDA & ICADD:
116 - ISO 12083:1993, Annex A.8, Facilities for Braille,
117 large print and computer voice
118 - ICADD ListServ
119 <ICADD%ASUACAD.BITNET@ARIZVM1.ccit.arizona.edu>
120 - Usenet news group bit.listserv.easi
121 - Recording for the Blind, +1 800 221 4792
122 -->
123
124 <!ENTITY % SDAFORM "SDAFORM CDATA #FIXED"
125 -- one to one mapping -->
126 <!ENTITY % SDARULE "SDARULE CDATA #FIXED"
127 -- context-sensitive mapping -->
128 <!ENTITY % SDAPREF "SDAPREF CDATA #FIXED"
129 -- generated text prefix -->
130 <!ENTITY % SDASUFF "SDASUFF CDATA #FIXED"
131 -- generated text suffix -->
132 <!ENTITY % SDASUSP "SDASUSP NAME #FIXED"
133 -- suspend transform process -->
134
135
136 <!--========== Text Markup =====================-->
137
138 <![ %HTML.Highlighting [
139
140 <!ENTITY % font " TT | B | I ">
141
142 <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE ">
143
144 <!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
145
146 <!ELEMENT (%font;|%phrase) - - (%text)*>
147 <!ATTLIST ( TT | CODE | SAMP | KBD | VAR )
148 %SDAFORM; "Lit"
149 >
150 <!ATTLIST ( B | STRONG )
151 %SDAFORM; "B"
152 >
153 <!ATTLIST ( I | EM | CITE )
154 %SDAFORM; "It"
155 >
156
157 <!-- <TT> Typewriter text -->
158 <!-- <B> Bold text -->
159 <!-- <I> Italic text -->
160
161 <!-- <EM> Emphasized phrase -->
162 <!-- <STRONG> Strong emphais -->
163 <!-- <CODE> Source code phrase -->
164 <!-- <SAMP> Sample text or characters -->
165 <!-- <KBD> Keyboard phrase, e.g. user input -->
166 <!-- <VAR> Variable phrase or substituable -->
167 <!-- <CITE> Name or title of cited work -->
168
169 <!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase">
170
171 ]]>
172
173 <!ENTITY % text "#PCDATA | A | IMG | BR">
174
175 <!ELEMENT BR - O EMPTY>
176 <!ATTLIST BR
177 %SDAPREF; "&#RE;"
178 >
179
180 <!-- <BR> Line break -->
181
182
183 <!--========= Link Markup ======================-->
184
185 <!ENTITY % linkExtraAttributes
186 "REL %linkType #IMPLIED
187 REV %linkType #IMPLIED
188 URN CDATA #IMPLIED
189 TITLE CDATA #IMPLIED
190 METHODS NAMES #IMPLIED
191 ">
192
193 <![ %HTML.Recommended [
194 <!ENTITY % A.content "(%text)*"
195 -- <H1><a name="xxx">Heading</a></H1>
196 is preferred to
197 <a name="xxx"><H1>Heading</H1></a>
198 -->
199 ]]>
200
201 <!ENTITY % A.content "(%heading|%text)*">
202
203 <!ELEMENT A - - %A.content -(A)>
204 <!ATTLIST A
205 HREF %URI #IMPLIED
206 NAME CDATA #IMPLIED
207 %linkExtraAttributes;
208 %SDAPREF; "<Anchor: #AttList>"
209 >
210 <!-- <A> Anchor; source/destination of link -->
211 <!-- <A NAME="..."> Name of this anchor -->
212 <!-- <A HREF="..."> Address of link destination -->
213 <!-- <A URN="..."> Permanent address of destination -->
214 <!-- <A REL=...> Relationship to destination -->
215 <!-- <A REV=...> Relationship of destination to this -->
216 <!-- <A TITLE="..."> Title of destination (advisory) -->
217 <!-- <A METHODS="..."> Operations on destination (advisory) -->
218
219
220 <!--========== Images ==========================-->
221
222 <!ELEMENT IMG - O EMPTY>
223 <!ATTLIST IMG
224 SRC %URI; #REQUIRED
225 ALT CDATA #IMPLIED
226 ALIGN (top|middle|bottom) #IMPLIED
227 ISMAP (ISMAP) #IMPLIED
228 %SDAPREF; "<Fig><?SDATrans Img: #AttList>#AttVal(Alt)</Fig>"
229 >
230
231 <!-- <IMG> Image; icon, glyph or illustration -->
232 <!-- <IMG SRC="..."> Address of image object -->
233 <!-- <IMG ALT="..."> Textual alternative -->
234 <!-- <IMG ALIGN=...> Position relative to text -->
235 <!-- <IMG ISMAP> Each pixel can be a link -->
236
237 <!--========== Paragraphs=======================-->
238
239 <!ELEMENT P - O (%text)*>
240 <!ATTLIST P
241 %SDAFORM; "Para"
242 >
243
244 <!-- <P> Paragraph -->
245
246
247 <!--========== Headings, Titles, Sections ===============-->
248
249 <!ELEMENT HR - O EMPTY>
250 <!ATTLIST HR
251 %SDAPREF; "&#RE;&#RE;"
252 >
253
254 <!-- <HR> Horizontal rule -->
255
256 <!ELEMENT ( %heading ) - - (%text;)*>
257 <!ATTLIST H1
258 %SDAFORM; "H1"
259 >
260 <!ATTLIST H2
261 %SDAFORM; "H2"
262 >
263 <!ATTLIST H3
264 %SDAFORM; "H3"
265 >
266 <!ATTLIST H4
267 %SDAFORM; "H4"
268 >
269 <!ATTLIST H5
270 %SDAFORM; "H5"
271 >
272 <!ATTLIST H6
273 %SDAFORM; "H6"
274 >
275
276 <!-- <H1> Heading, level 1 -->
277 <!-- <H2> Heading, level 2 -->
278 <!-- <H3> Heading, level 3 -->
279 <!-- <H4> Heading, level 4 -->
280 <!-- <H5> Heading, level 5 -->
281 <!-- <H6> Heading, level 6 -->
282
283
284 <!--========== Text Flows ======================-->
285
286 <![ %HTML.Forms [
287 <!ENTITY % block.forms "BLOCKQUOTE | FORM | ISINDEX">
288 ]]>
289
290 <!ENTITY % block.forms "BLOCKQUOTE">
291
292 <![ %HTML.Deprecated [
293 <!ENTITY % preformatted "PRE | XMP | LISTING">
294 ]]>
295
296 <!ENTITY % preformatted "PRE">
297
298 <!ENTITY % block "P | %list | DL
299 | %preformatted
300 | %block.forms">
301
302 <!ENTITY % flow "(%text|%block)*">
303
304 <!ENTITY % pre.content "#PCDATA | A | HR | BR">
305 <!ELEMENT PRE - - (%pre.content)*>
306 <!ATTLIST PRE
307 WIDTH NUMBER #implied
308 %SDAFORM; "Lit"
309 >
310
311 <!-- <PRE> Preformatted text -->
312 <!-- <PRE WIDTH=...> Maximum characters per line -->
313
314 <![ %HTML.Deprecated [
315
316 <!ENTITY % literal "CDATA"
317 -- historical, non-conforming parsing mode where
318 the only markup signal is the end tag
319 in full
320 -->
321
322 <!ELEMENT (XMP|LISTING) - - %literal>
323 <!ATTLIST XMP
324 %SDAFORM; "Lit"
325 %SDAPREF; "Example:&#RE;"
326 >
327 <!ATTLIST LISTING
328 %SDAFORM; "Lit"
329 %SDAPREF; "Listing:&#RE;"
330 >
331
332 <!-- <XMP> Example section -->
333 <!-- <LISTING> Computer listing -->
334
335 <!ELEMENT PLAINTEXT - O %literal>
336 <!-- <PLAINTEXT> Plain text passage -->
337
338 <!ATTLIST PLAINTEXT
339 %SDAFORM; "Lit"
340 >
341 ]]>
342
343
344 <!--========== Lists ==================-->
345
346 <!ELEMENT DL - - (DT | DD)+>
347 <!ATTLIST DL
348 COMPACT (COMPACT) #IMPLIED
349 %SDAFORM; "List"
350 %SDAPREF; "Definition List:"
351 >
352
353 <!ELEMENT DT - O (%text)*>
354 <!ATTLIST DT
355 %SDAFORM; "Term"
356 >
357
358 <!ELEMENT DD - O %flow>
359 <!ATTLIST DD
360 %SDAFORM; "LItem"
361 >
362
363 <!-- <DL> Definition list, or glossary -->
364 <!-- <DL COMPACT> Compact style list -->
365 <!-- <DT> Term in definition list -->
366 <!-- <DD> Definition of term -->
367
368 <!ELEMENT (OL|UL) - - (LI)+>
369 <!ATTLIST OL
370 COMPACT (COMPACT) #IMPLIED
371 %SDAFORM; "List"
372 >
373 <!ATTLIST UL
374 COMPACT (COMPACT) #IMPLIED
375 %SDAFORM; "List"
376 >
377 <!-- <UL> Unordered list -->
378 <!-- <UL COMPACT> Compact list style -->
379 <!-- <OL> Ordered, or numbered list -->
380 <!-- <OL COMPACT> Compact list style -->
381
382
383 <!ELEMENT (DIR|MENU) - - (LI)+ -(%block)>
384 <!ATTLIST DIR
385 COMPACT (COMPACT) #IMPLIED
386 %SDAFORM; "List"
387 %SDAPREF; "<LHead>Directory</LHead>"
388 >
389 <!ATTLIST MENU
390 COMPACT (COMPACT) #IMPLIED
391 %SDAFORM; "List"
392 %SDAPREF; "<LHead>Menu</LHead>"
393 >
394
395 <!-- <DIR> Directory list -->
396 <!-- <DIR COMPACT> Compact list style -->
397 <!-- <MENU> Menu list -->
398 <!-- <MENU COMPACT> Compact list style -->
399
400 <!ELEMENT LI - O %flow>
401 <!ATTLIST LI
402 %SDAFORM; "LItem"
403 >
404
405 <!-- <LI> List item -->
406
407 <!--========== Document Body ===================-->
408
409 <![ %HTML.Recommended [
410 <!ENTITY % body.content "(%heading|%block|HR|ADDRESS|IMG)*"
411 -- <h1>Heading</h1>
412 <p>Text ...
413 is preferred to
414 <h1>Heading</h1>
415 Text ...
416 -->
417 ]]>
418
419 <!ENTITY % body.content "(%heading | %text | %block |
420 HR | ADDRESS)*">
421
422 <!ELEMENT BODY O O %body.content>
423
424 <!-- <BODY> Document body -->
425
426 <!ELEMENT BLOCKQUOTE - - %body.content>
427 <!ATTLIST BLOCKQUOTE
428 %SDAFORM; "BQ"
429 >
430
431 <!-- <BLOCKQUOTE> Quoted passage -->
432
433 <!ELEMENT ADDRESS - - (%text|P)*>
434 <!ATTLIST ADDRESS
435 %SDAFORM; "Lit"
436 %SDAPREF; "Address:&#RE;"
437 >
438
439 <!-- <ADDRESS> Address, signature, or byline -->
440
441
442 <!--======= Forms ====================-->
443
444 <![ %HTML.Forms [
445
446 <!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)>
447 <!ATTLIST FORM
448 ACTION %URI #IMPLIED
449 METHOD (%HTTP-Method) GET
450 ENCTYPE %Content-Type; "application/x-www-form-urlencoded"
451 %SDAPREF; "<Para>Form:</Para>"
452 %SDASUFF; "<Para>Form End.</Para>"
453 >
454
455 <!-- <FORM> Fill-out or data-entry form -->
456 <!-- <FORM ACTION="..."> Address for completed form -->
457 <!-- <FORM METHOD=...> Method of submitting form -->
458 <!-- <FORM ENCTYPE="..."> Representation of form data -->
459
460 <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
461 RADIO | SUBMIT | RESET |
462 IMAGE | HIDDEN )">
463 <!ELEMENT INPUT - O EMPTY>
464 <!ATTLIST INPUT
465 TYPE %InputType TEXT
466 NAME CDATA #IMPLIED
467 VALUE CDATA #IMPLIED
468 SRC %URI #IMPLIED
469 CHECKED (CHECKED) #IMPLIED
470 SIZE CDATA #IMPLIED
471 MAXLENGTH NUMBER #IMPLIED
472 ALIGN (top|middle|bottom) #IMPLIED
473 %SDAPREF; "Input: "
474 >
475
476 <!-- <INPUT> Form input datum -->
477 <!-- <INPUT TYPE=...> Type of input interaction -->
478 <!-- <INPUT NAME=...> Name of form datum -->
479 <!-- <INPUT VALUE="..."> Default/initial/selected value -->
480 <!-- <INPUT SRC="..."> Address of image -->
481 <!-- <INPUT CHECKED> Initial state is "on" -->
482 <!-- <INPUT SIZE=...> Field size hint -->
483 <!-- <INPUT MAXLENGTH=...> Data length maximum -->
484 <!-- <INPUT ALIGN=...> Image alignment -->
485
486 <!ELEMENT SELECT - - (OPTION+) -(INPUT|SELECT|TEXTAREA)>
487 <!ATTLIST SELECT
488 NAME CDATA #REQUIRED
489 SIZE NUMBER #IMPLIED
490 MULTIPLE (MULTIPLE) #IMPLIED
491 %SDAFORM; "List"
492 %SDAPREF;
493 "<LHead>Select #AttVal(Multiple)</LHead>"
494 >
495
496 <!-- <SELECT> Selection of option(s) -->
497 <!-- <SELECT NAME=...> Name of form datum -->
498 <!-- <SELECT SIZE=...> Options displayed at a time -->
499 <!-- <SELECT MULTIPLE> Multiple selections allowed -->
500
501 <!ELEMENT OPTION - O (#PCDATA)*>
502 <!ATTLIST OPTION
503 SELECTED (SELECTED) #IMPLIED
504 VALUE CDATA #IMPLIED
505 %SDAFORM; "LItem"
506 %SDAPREF;
507 "Option: #AttVal(Value) #AttVal(Selected)"
508 >
509
510 <!-- <OPTION> A selection option -->
511 <!-- <OPTION SELECTED> Initial state -->
512 <!-- <OPTION VALUE="..."> Form datum value for this option-->
513
514 <!ELEMENT TEXTAREA - - (#PCDATA)* -(INPUT|SELECT|TEXTAREA)>
515 <!ATTLIST TEXTAREA
516 NAME CDATA #REQUIRED
517 ROWS NUMBER #REQUIRED
518 COLS NUMBER #REQUIRED
519 %SDAFORM; "Para"
520 %SDAPREF; "Input Text -- #AttVal(Name): "
521 >
522
523 <!-- <TEXTAREA> An area for text input -->
524 <!-- <TEXTAREA NAME=...> Name of form datum -->
525 <!-- <TEXTAREA ROWS=...> Height of area -->
526 <!-- <TEXTAREA COLS=...> Width of area -->
527
528 ]]>
529
530
531 <!--======= Document Head ======================-->
532
533 <![ %HTML.Recommended [
534 <!ENTITY % head.extra "">
535 ]]>
536 <!ENTITY % head.extra "& NEXTID?">
537
538 <!ENTITY % head.content "TITLE & ISINDEX? & BASE? %head.extra">
539
540 <!ELEMENT HEAD O O (%head.content) +(META|LINK)>
541
542 <!-- <HEAD> Document head -->
543
544 <!ELEMENT TITLE - - (#PCDATA)*>
545 <!ATTLIST TITLE
546 %SDAFORM; "Ti" >
547
548 <!-- <TITLE> Title of document -->
549
550 <!ELEMENT LINK - O EMPTY>
551 <!ATTLIST LINK
552 HREF %URI #REQUIRED
553 %linkExtraAttributes;
554 %SDAPREF; "Linked to : #AttVal (TITLE) (URN) (HREF)>" >
555
556 <!-- <LINK> Link from this document -->
557 <!-- <LINK HREF="..."> Address of link destination -->
558 <!-- <LINK URN="..."> Lasting name of destination -->
559 <!-- <LINK REL=...> Relationship to destination -->
560 <!-- <LINK REV=...> Relationship of destination to this -->
561 <!-- <LINK TITLE="..."> Title of destination (advisory) -->
562 <!-- <LINK METHODS="..."> Operations allowed (advisory) -->
563
564 <!ELEMENT ISINDEX - O EMPTY>
565 <!ATTLIST ISINDEX
566 %SDAPREF;
567 "<Para>[Document is indexed/searchable.]</Para>">
568
569 <!-- <ISINDEX> Document is a searchable index -->
570
571 <!ELEMENT BASE - O EMPTY>
572 <!ATTLIST BASE
573 HREF %URI; #REQUIRED >
574
575 <!-- <BASE> Base context document -->
576 <!-- <BASE HREF="..."> Address for this document -->
577
578 <!ELEMENT NEXTID - O EMPTY>
579 <!ATTLIST NEXTID
580 N CDATA #REQUIRED >
581
582 <!-- <NEXTID> Next ID to use for link name -->
583 <!-- <NEXTID N=...> Next ID to use for link name -->
584
585 <!ELEMENT META - O EMPTY>
586 <!ATTLIST META
587 HTTP-EQUIV NAME #IMPLIED
588 NAME NAME #IMPLIED
589 CONTENT CDATA #REQUIRED >
590
591 <!-- <META> Generic Metainformation -->
592 <!-- <META HTTP-EQUIV=...> HTTP response header name -->
593 <!-- <META NAME=...> Metainformation name -->
594 <!-- <META CONTENT="..."> Associated information -->
595
596 <!--======= Document Structure =================-->
597
598 <![ %HTML.Deprecated [
599 <!ENTITY % html.content "HEAD, BODY, PLAINTEXT?">
600 ]]>
601 <!ENTITY % html.content "HEAD, BODY">
602
603 <!ELEMENT HTML O O (%html.content)>
604 <!ENTITY % version.attr "VERSION CDATA #FIXED '%HTML.Version;'">
605
606 <!ATTLIST HTML
607 %version.attr;
608 %SDAFORM; "Book"
609 >
610
611 <!-- <HTML> HTML Document -->

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24