1 |
<!-- |
<!-- html.dtd |
|
$Id$ |
|
|
--> |
|
2 |
|
|
3 |
<!-- Regarding clause 6.1, SGML Document: |
Document Type Definition for the HyperText Markup Language (HTML DTD) |
4 |
|
|
5 |
[1] SGML document = SGML document entity, |
$Id$ |
|
(SGML subdocument entity | |
|
|
SGML text entity | non-SGML data entity)* |
|
6 |
|
|
7 |
The role of SGML document entity is filled by this DTD, |
Author: Daniel W. Connolly <connolly@hal.com> |
8 |
followed by the conventional HTML data stream. |
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 |
<!-- DTD definitions --> |
<!ENTITY HTML.Version |
14 |
|
"-//W3O//DTD WWW HTML 2.0//EN" |
15 |
|
|
16 |
|
-- Typical usage: |
17 |
|
|
18 |
|
<!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN"> |
19 |
|
<html> |
20 |
|
... |
21 |
|
</html> |
22 |
|
-- |
23 |
|
> |
24 |
|
|
25 |
|
|
26 |
|
<!-- Imported Names --> |
27 |
|
|
28 |
|
<!ENTITY % Content-Type "CDATA" |
29 |
|
-- meaning a MIME content type, as per RFC1521 |
30 |
|
--> |
31 |
|
|
32 |
|
<!ENTITY % HTTP-Method "GET | POST"> |
33 |
|
|
34 |
|
|
35 |
|
<!-- Include level 1 DTD + block extensions --> |
36 |
|
|
37 |
|
<!ENTITY % block-2 "| FORM | ISINDEX" |
38 |
|
--@# ISINDEX in BODY? --> |
39 |
|
|
40 |
|
<!ENTITY % html-1 PUBLIC "-//W3O//DTD WWW HTML 2.0 Level 1//EN"> |
41 |
|
%html-1; |
42 |
|
|
43 |
|
|
44 |
|
<!-- Forms --> |
45 |
|
|
46 |
|
<!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)> |
47 |
|
<!ATTLIST FORM |
48 |
|
ACTION %URI #REQUIRED |
49 |
|
METHOD (%HTTP-Method) #IMPLIED -- @# MAILTO? -- |
50 |
|
ENCTYPE %Content-Type; #IMPLIED |
51 |
|
> |
52 |
|
|
53 |
|
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
54 |
|
RADIO | SUBMIT | RESET | |
55 |
|
IMAGE | HIDDEN )"> |
56 |
|
<!ELEMENT INPUT - O EMPTY> |
57 |
|
<!ATTLIST INPUT |
58 |
|
TYPE %InputType #IMPLIED -- @# defaults to TEXT?? -- |
59 |
|
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
60 |
|
VALUE CDATA #IMPLIED |
61 |
|
SRC %URI #IMPLIED -- for image inputs -- |
62 |
|
CHECKED (CHECKED) #IMPLIED |
63 |
|
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
64 |
|
MAXLENGTH NUMBER #IMPLIED |
65 |
|
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
66 |
|
> |
67 |
|
|
68 |
|
<!ELEMENT SELECT - - (OPTION+)> |
69 |
|
<!ATTLIST SELECT |
70 |
|
NAME CDATA #REQUIRED |
71 |
|
SIZE NUMBER #IMPLIED |
72 |
|
MULTIPLE (MULTIPLE) #IMPLIED |
73 |
|
> |
74 |
|
|
75 |
|
<!ELEMENT OPTION - O (#PCDATA)> |
76 |
|
<!ATTLIST OPTION |
77 |
|
SELECTED (SELECTED) #IMPLIED |
78 |
|
VALUE CDATA #IMPLIED |
79 |
|
> |
80 |
|
|
81 |
|
<!ELEMENT TEXTAREA - - (#PCDATA)> |
82 |
|
<!ATTLIST TEXTAREA |
83 |
|
NAME CDATA #REQUIRED |
84 |
|
ROWS NUMBER #REQUIRED -- @#implied? -- |
85 |
|
COLS NUMBER #REQUIRED |
86 |
|
> |
87 |
|
|
88 |
|
|
89 |
|
|
|
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
|
|
<!ENTITY % list "UL|OL|DIR|MENU"> |
|
|
<!ENTITY % literal "XMP|LISTING"> |
|
|
|
|
|
<!ENTITY % headelement |
|
|
"TITLE | NEXTID | ISINDEX" > |
|
|
|
|
|
<!ENTITY % bodyelement |
|
|
"P | %heading | |
|
|
%list | DL | HEADERS | ADDRESS | PRE | BLOCKQUOTE |
|
|
| %literal"> |
|
|
|
|
|
<!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA"> |
|
|
<!ENTITY % URL "CDATA" |
|
|
-- The term URL means a CDATA attribute |
|
|
whose value is a Universal Resource Locator, |
|
|
as defined in ftp://info.cern.ch/pub/www/doc/url3.txt |
|
|
--> |
|
|
|
|
|
<!ENTITY % linkattributes |
|
|
"NAME NMTOKEN #IMPLIED |
|
|
HREF %URL; #IMPLIED |
|
|
TYPE NAME #IMPLIED -- type of relashionship to referent data: |
|
|
PARENT CHILD, SIBLING, NEXT, TOP, |
|
|
DEFINITION, UPDATE, ORIGINAL etc. -- |
|
|
URN CDATA #IMPLIED -- universal resource number. unique doc id -- |
|
|
TITLE CDATA #IMPLIED -- advisory only -- |
|
|
METHODS NAMES #IMPLIED -- supported methods of the object: |
|
|
TEXTSEARCH, GET, HEAD, ... -- |
|
|
"> |
|
|
|
|
|
<!-- Document Element --> |
|
|
|
|
|
<!ELEMENT HTML O O ((HEAD | BODY | %oldstyle)*, PLAINTEXT?)> |
|
|
|
|
|
<!ELEMENT HEAD - - (TITLE? & ISINDEX? & NEXTID? & LINK*)> |
|
|
|
|
|
<!ELEMENT TITLE - - RCDATA |
|
|
-- 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. |
|
|
--> |
|
|
|
|
|
<!ELEMENT ISINDEX - O EMPTY |
|
|
-- WWW clients should offer the option to perform a search on |
|
|
documents containing ISINDEX. |
|
|
--> |
|
|
|
|
|
<!ELEMENT NEXTID - O EMPTY> |
|
|
<!ATTLIST NEXTID N NUMBER #REQUIRED |
|
|
-- The number should be the highest number that appears in |
|
|
any NAME attribute in the document. |
|
|
--> |
|
|
|
|
|
<!ELEMENT LINK - O EMPTY> |
|
|
<!ATTLIST LINK |
|
|
%linkattributes> |
|
|
|
|
|
<!ENTITY % inline "EM | TT | STRONG | B | I | U | |
|
|
CODE | SAMP | KBD | KEY | VAR | DFN | CITE " |
|
|
> |
|
|
|
|
|
<!ELEMENT (%inline;) - - (#PCDATA)> |
|
|
|
|
|
<!ENTITY % hypertext "#PCDATA | %inline; | A"> |
|
|
|
|
|
<!ELEMENT BODY - - (%bodyelement|%hypertext;)*> |
|
|
|
|
|
<!ELEMENT A - - (#PCDATA)> |
|
|
<!ATTLIST A |
|
|
%linkattributes; |
|
|
> |
|
|
|
|
|
<!ELEMENT P - O EMPTY -- separates paragraphs --> |
|
|
|
|
|
<!ELEMENT (%heading) - - (%hypertext;)+> |
|
|
|
|
|
<!ELEMENT DL - - (DT | DD | P | %hypertext;)*> |
|
|
<!-- Content should match ((DT,(%hypertext;)+)+,(DD,(%hypertext;)+)) |
|
|
But mixed content is messy. |
|
|
--> |
|
|
<!ATTLIST DL |
|
|
STYLE NAME #IMPLIED -- COMPACT, etc.-- |
|
|
> |
|
|
|
|
|
<!ELEMENT DT - O EMPTY> |
|
|
<!ELEMENT DD - O EMPTY> |
|
|
|
|
|
<!ELEMENT (UL|OL) - - (%hypertext;|LI|P)+> |
|
|
<!ELEMENT (DIR|MENU) - - (%hypertext;|LI)+> |
|
|
<!-- Content should match ((LI,(%hypertext;)+)+) |
|
|
But mixed content is messy. |
|
|
--> |
|
|
|
|
|
<!ELEMENT LI - O EMPTY> |
|
|
|
|
|
<!ELEMENT BLOCKQUOTE - - (%hypertext;|P)+ |
|
|
-- for quoting some other source --> |
|
|
<!ATTLIST BLOCKQUOTE |
|
|
SOURCE CDATA #IMPLIED -- URL of source -- |
|
|
> |
|
|
|
|
|
<!ELEMENT ADDRESS - - (%hypertext;|P)+> |
|
|
|
|
|
<!ELEMENT PRE - - (#PCDATA | A | B | I | U | P)+> |
|
|
<!ATTLIST PRE |
|
|
WIDTH NUMBER #implied |
|
|
> |
|
|
|
|
|
|
|
|
<!-- Mnemonic character entities. --> |
|
|
<!ENTITY AElig "Æ" -- capital AE diphthong (ligature) --> |
|
|
<!ENTITY Aacute "Á" -- capital A, acute accent --> |
|
|
<!ENTITY Acirc "Â" -- capital A, circumflex accent --> |
|
|
<!ENTITY Agrave "À" -- capital A, grave accent --> |
|
|
<!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 --> |
|
|
<!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 --> |
|
|
<!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 --> |
|
|
<!ENTITY lt "<" -- less than --> |
|
|
<!ENTITY ntilde "ñ" -- small n, tilde --> |
|
|
<!ENTITY oacute "ó" -- small o, acute accent --> |
|
|
<!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 --> |
|
|
|
|
|
<!-- deprecated elements --> |
|
|
|
|
|
<!ELEMENT (%literal) - - CDATA> |
|
|
|
|
|
<!ELEMENT PLAINTEXT - O EMPTY> |
|
|
|
|
|
<!-- Local Variables: --> |
|
|
<!-- mode: sgml --> |
|
|
<!-- compile-command: "sgmls -s -p " --> |
|
|
<!-- end: --> |
|