/[pub]/test/html.dtd
Suika

Diff of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by connolly, Wed Mar 30 02:29:15 1994 UTC revision 1.7.2.4 by connolly, Thu Apr 7 00:33:25 1994 UTC
# Line 1  Line 1 
1  <!SGML  "ISO 8879:1986"  <!--    html.dtd
2  --  
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          NOTE: This is a definition of HTML with respect to          $Id$
         SGML, and assumes an understanding of SGML terms.  
   
         If you find bugs in this DTD or find it does not compile  
         under some circumstances please mail www-bug@info.cern.ch  
 --  
   
 CHARSET  
          BASESET  "ISO 646:1983//CHARSET  
                    International Reference Version (IRV)//ESC 2/5 4/0"  
          DESCSET  0   9   UNUSED  
                   9   2   9  
                   11  2   UNUSED  
                   13  1   13  
                   14  18  UNUSED  
                   32  95  32  
                   127 1   UNUSED  
      BASESET   "ISO Registration Number 100//CHARSET  
                 ECMA-94 Right Part of Latin Alphabet Nr. 1//ESC 2/13 4/1"  
      DESCSET   128 32 UNUSED  
                160 95 32  
                255  1 UNUSED  
   
   
 CAPACITY        SGMLREF  
                 TOTALCAP        150000  
                 GRPCAP          150000  
   
 SCOPE    DOCUMENT  
 SYNTAX  
          SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  
                            19 20 21 22 23 24 25 26 27 28 29 30 31 127 255  
          BASESET  "ISO 646:1983//CHARSET  
                    International Reference Version (IRV)//ESC 2/5 4/0"  
          DESCSET  0 128 0  
          FUNCTION RE          13  
                   RS          10  
                   SPACE       32  
                   TAB SEPCHAR  9  
          NAMING   LCNMSTRT ""  
                   UCNMSTRT ""  
                   LCNMCHAR ".-"  
                   UCNMCHAR ".-"  
                   NAMECASE GENERAL YES  
                            ENTITY  NO  
          DELIM    GENERAL  SGMLREF  
                   SHORTREF SGMLREF  
          NAMES    SGMLREF  
          QUANTITY SGMLREF  
                   NAMELEN  34  
                   TAGLVL   100  
                   LITLEN   1024  
                   GRPGTCNT 150  
                   GRPCNT   64  
   
 FEATURES  
   MINIMIZE  
     DATATAG  NO  
     OMITTAG  NO  
     RANK     NO  
     SHORTTAG NO  
   LINK  
     SIMPLE   NO  
     IMPLICIT NO  
     EXPLICIT NO  
   OTHER  
     CONCUR   NO  
     SUBDOC   NO  
     FORMAL   YES  
   APPINFO    NONE  
 >  
   
 <!DOCTYPE HTML [  
 <!-- Jul 1 93 -->  
 <!--    Regarding clause 6.1, SGML Document:  
   
         [1] SGML document = SGML document entity,  
             (SGML subdocument entity |  
             SGML text entity | non-SGML data entity)*  
   
         The role of SGML document entity is filled by this DTD,  
         followed by the conventional HTML data stream.  
7  -->  -->
8    
 <!-- DTD definitions -->  
9    
10  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >  <!-- DTD definitions -->
 <!ENTITY % list " UL | OL | DIR | MENU ">  
 <!ENTITY % literal " XMP | LISTING ">  
   
 <!ENTITY % headelement  
          " TITLE | NEXTID |ISINDEX" >  
   
 <!ENTITY % bodyelement  
          "P | HR | %heading |  
          %list | DL | ADDRESS | PRE | BLOCKQUOTE  
         | %literal">  
   
 <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">  
11    
12  <!ENTITY % URL "CDATA"  <!ENTITY % URL "CDATA"
13          -- The term URL means a CDATA attribute          -- The term URL means a CDATA attribute
# Line 109  FEATURES Line 15  FEATURES
15             as defined. (A URN may also be usable here when defined.)             as defined. (A URN may also be usable here when defined.)
16          -->          -->
17    
18    <!ENTITY % Content-Type "CDATA" -- meaning a MIME content type -->
19    
20  <!ENTITY % linkattributes  <!ENTITY % linkattributes
21          "NAME NMTOKEN #IMPLIED          "HREF %URL;  #IMPLIED
         HREF %URL;  #IMPLIED  
22          REL CDATA #IMPLIED -- forward relationship type --          REL CDATA #IMPLIED -- forward relationship type --
23          REV CDATA #IMPLIED -- reversed relationship type          REV CDATA #IMPLIED -- reversed relationship type
24                                to referent data:                                to referent data:
# Line 126  FEATURES Line 33  FEATURES
33          METHODS NAMES #IMPLIED -- supported public methods of the object:          METHODS NAMES #IMPLIED -- supported public methods of the object:
34                                          TEXTSEARCH, GET, HEAD, ... --                                          TEXTSEARCH, GET, HEAD, ... --
35    
36            --@# content-type --
37          ">          ">
38    
39    
40  <!-- Document Element -->  <!-- Document Element -->
41    
42  <!ELEMENT HTML O O  (( HEAD | BODY | %oldstyle )*, PLAINTEXT?)>  <!ELEMENT HTML O O  (HEAD, BODY)>
43    
44  <!ELEMENT HEAD - -  ( TITLE?  & ISINDEX?  & NEXTID?  & LINK*  <!-- Head -->
45    
46    <!ELEMENT HEAD O O  ( TITLE?  & ISINDEX? & NEXTID? & LINK*
47                                & BASE?)>                                & BASE?)>
48    
49  <!ELEMENT TITLE - -  RCDATA  <!ELEMENT NEXTID - O EMPTY -- @# obsolete -->
50    <!ATTLIST NEXTID
51            N ID #REQUIRED -- next available id -->
52    
53    <!ELEMENT TITLE - -  (#PCDATA)
54            -- The TITLE element is not considered part of the flow of text.            -- The TITLE element is not considered part of the flow of text.
55               It should be displayed, for example as the page header or               It should be displayed, for example as the page header or
56               window title.               window title.
# Line 147  FEATURES Line 61  FEATURES
61               documents containing ISINDEX.               documents containing ISINDEX.
62            -->            -->
63    
 <!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  
           -->  
64  <!ELEMENT LINK - O EMPTY>  <!ELEMENT LINK - O EMPTY>
65  <!ATTLIST LINK  <!ATTLIST LINK
66          %linkattributes>          %linkattributes
67            >
68                    
69  <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->  <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->
70  <!ATTLIST BASE  <!ATTLIST BASE
   
71          HREF %URL; #IMPLIED          HREF %URL; #IMPLIED
   
         >  
 <!ENTITY % inline "EM | TT | STRONG | B | I | U |  
                         CODE | SAMP | KBD | KEY | VAR | DFN | CITE "  
72          >          >
73    
 <!ELEMENT (%inline;) - - (#PCDATA)>  
74    
75  <!ENTITY % text "#PCDATA | IMG | %inline;">  <!-- Body -->
76    
77  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->  <!ELEMENT BODY O O  ANY -- empty P version @# -->
78    
79  <!ENTITY % stext                -- as htext but also nested structure --  <!-- Text -->
                         "P | HR | %list | DL | ADDRESS  
                         | PRE | BLOCKQUOTE  
                         | %literal | %htext">  
80    
81    <!ENTITY % inline "EM | STRONG |
82                            CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
83            >
84    <!ENTITY % fonts "B | I | U | TT">
85    
86  <!ELEMENT BODY - -  (%bodyelement|%htext;)*>  <!ENTITY % text "#PCDATA | IMG | %inline; | %fonts; | BR | P"
87            -- @# yuk: P in textflows --
88             --@# BR -> &br; --
89             --@# yuk: fonts -- >
90    
91    <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
92    
93    <!ELEMENT (%inline;) - - (%htext)+>
94    <!ELEMENT (%fonts;)  - - (%htext)+>
95    
96  <!ELEMENT A     - -  (%text)>  <!ELEMENT A     - -  ANY -(A)>
97  <!ATTLIST A  <!ATTLIST A
98          %linkattributes;          NAME NMTOKEN #IMPLIED -- @# dangit! this should be ID! --
99            %linkattributes;
100          >          >
101    
102  <!ELEMENT IMG    - O EMPTY --  Embedded image -->  <!ELEMENT IMG    - O EMPTY --  Embedded image -->
103  <!ATTLIST IMG  <!ATTLIST IMG
104          SRC %URL;  #IMPLIED     -- URL of document to embed --          SRC %URL;  #IMPLIED     -- URL of document to embed --
105            ALT CDATA #IMPLIED
106            ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
107          >          >
108    
109    
110  <!ELEMENT P     - O EMPTY -- separates paragraphs -->  <!ELEMENT P     - O EMPTY -- paragraph separator @# -->
111  <!ELEMENT HR    - O EMPTY -- horizontal rule -->  <!ELEMENT HR    - O EMPTY -- horizontal rule -->
112    <!ELEMENT BR    - O EMPTY -- @# BR -> &br; -->
113    
114  <!ELEMENT ( %heading )  - -  (%htext;)+>  <!-- Headings -->
115    
116  <!ELEMENT DL    - -  (DT | DD | %stext;)*>  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
117  <!--    Content should match ((DT,(%htext;)+)+,(DD,(%stext;)+))  <!ELEMENT ( %heading )  - -  (%htext;)+>
         But mixed content is messy.  -Dan Connolly  
   -->  
   
 <!ELEMENT DT    - O EMPTY>  
 <!ELEMENT DD    - O EMPTY>  
   
 <!ELEMENT (UL|OL) - -  (%htext;|LI|P)+>  
 <!ELEMENT (DIR|MENU) - -  (%htext;|LI)+>  
 <!--    Content should match ((LI,(%htext;)+)+)  
         But mixed content is messy.  
   -->  
 <!ATTLIST (%list)  
         COMPACT NAME #IMPLIED -- COMPACT, etc.--  
         >  
118    
 <!ELEMENT LI    - O EMPTY>  
119    
120  <!ELEMENT BLOCKQUOTE - - (%htext;|P)+  <!-- Pre-formatted Text -->
         -- for quoting some other source -->  
121    
122  <!ELEMENT ADDRESS - - (%htext;|P)+>  <!ENTITY % pre "PRE | XMP | LISTING" -- @# treat XMP like pre? -->
123    
124  <!ELEMENT PRE - - (#PCDATA|%inline|A|P)+>  <!ELEMENT PRE - - (#PCDATA | %fonts | %inline | A | BR)+>
125  <!ATTLIST PRE                  <!-- @# yuk: VAR, CITE etc. in PRE -->
126                    <!-- @# P in PRE ??-->
127                    <!-- @# BR -> &br; -->
128    <!ELEMENT (XMP|LISTING) - - RCDATA>
129    <!-- @# PLAINTEXT?? -->
130    <!ATTLIST (%pre;)
131          WIDTH NUMBER #implied          WIDTH NUMBER #implied
132          >          >
133    
134  <!-- Mnemonic character entities. -->  <!-- Block Elements -->
 <!ENTITY AElig "&#198;"  -- capital AE diphthong (ligature) -->  
 <!ENTITY Aacute "&#193;" -- capital A, acute accent -->  
 <!ENTITY Acirc "&#194;"  -- capital A, circumflex accent -->  
 <!ENTITY Agrave "&#192;" -- capital A, grave accent -->  
 <!ENTITY Aring "&#197;"  -- capital A, ring -->  
 <!ENTITY Atilde "&#195;" -- capital A, tilde -->  
 <!ENTITY Auml "&#196;"   -- capital A, dieresis or umlaut mark -->  
 <!ENTITY Ccedil "&#199;" -- capital C, cedilla -->  
 <!ENTITY ETH "&#208;"    -- capital Eth, Icelandic -->  
 <!ENTITY Eacute "&#201;" -- capital E, acute accent -->  
 <!ENTITY Ecirc "&#202;"  -- capital E, circumflex accent -->  
 <!ENTITY Egrave "&#200;" -- capital E, grave accent -->  
 <!ENTITY Euml "&#203;"   -- capital E, dieresis or umlaut mark -->  
 <!ENTITY Iacute "&#205;" -- capital I, acute accent -->  
 <!ENTITY Icirc "&#206;"  -- capital I, circumflex accent -->  
 <!ENTITY Igrave "&#204;" -- capital I, grave accent -->  
 <!ENTITY Iuml "&#207;"   -- capital I, dieresis or umlaut mark -->  
 <!ENTITY Ntilde "&#209;" -- capital N, tilde -->  
 <!ENTITY Oacute "&#211;" -- capital O, acute accent -->  
 <!ENTITY Ocirc "&#212;"  -- capital O, circumflex accent -->  
 <!ENTITY Ograve "&#210;" -- capital O, grave accent -->  
 <!ENTITY Oslash "&#216;" -- capital O, slash -->  
 <!ENTITY Otilde "&#213;" -- capital O, tilde -->  
 <!ENTITY Ouml "&#214;"   -- capital O, dieresis or umlaut mark -->  
 <!ENTITY THORN "&#222;"  -- capital THORN, Icelandic -->  
 <!ENTITY Uacute "&#218;" -- capital U, acute accent -->  
 <!ENTITY Ucirc "&#219;"  -- capital U, circumflex accent -->  
 <!ENTITY Ugrave "&#217;" -- capital U, grave accent -->  
 <!ENTITY Uuml "&#220;"   -- capital U, dieresis or umlaut mark -->  
 <!ENTITY Yacute "&#221;" -- capital Y, acute accent -->  
 <!ENTITY aacute "&#225;" -- small a, acute accent -->  
 <!ENTITY acirc "&#226;"  -- small a, circumflex accent -->  
 <!ENTITY aelig "&#230;"  -- small ae diphthong (ligature) -->  
 <!ENTITY agrave "&#224;" -- small a, grave accent -->  
 <!ENTITY amp "&#38;"     -- ampersand -->  
 <!ENTITY aring "&#229;"  -- small a, ring -->  
 <!ENTITY atilde "&#227;" -- small a, tilde -->  
 <!ENTITY auml "&#228;"   -- small a, dieresis or umlaut mark -->  
 <!ENTITY ccedil "&#231;" -- small c, cedilla -->  
 <!ENTITY eacute "&#233;" -- small e, acute accent -->  
 <!ENTITY ecirc "&#234;"  -- small e, circumflex accent -->  
 <!ENTITY egrave "&#232;" -- small e, grave accent -->  
 <!ENTITY eth "&#240;"    -- small eth, Icelandic -->  
 <!ENTITY euml "&#235;"   -- small e, dieresis or umlaut mark -->  
 <!ENTITY gt "&#62;"      -- greater than -->  
 <!ENTITY iacute "&#237;" -- small i, acute accent -->  
 <!ENTITY icirc "&#238;"  -- small i, circumflex accent -->  
 <!ENTITY igrave "&#236;" -- small i, grave accent -->  
 <!ENTITY iuml "&#239;"   -- small i, dieresis or umlaut mark -->  
 <!ENTITY lt "&#60;"      -- less than -->  
 <!ENTITY nbsp "&#32;"    --  should be NON_BREAKING space -->  
 <!ENTITY ntilde "&#241;" -- small n, tilde -->  
 <!ENTITY oacute "&#243;" -- small o, acute accent -->  
 <!ENTITY ocirc "&#244;"  -- small o, circumflex accent -->  
 <!ENTITY ograve "&#242;" -- small o, grave accent -->  
 <!ENTITY oslash "&#248;" -- small o, slash -->  
 <!ENTITY otilde "&#245;" -- small o, tilde -->  
 <!ENTITY ouml "&#246;"   -- small o, dieresis or umlaut mark -->  
 <!ENTITY szlig "&#223;"  -- small sharp s, German (sz ligature) -->  
 <!ENTITY thorn "&#254;"  -- small thorn, Icelandic -->  
 <!ENTITY uacute "&#250;" -- small u, acute accent -->  
 <!ENTITY ucirc "&#251;"  -- small u, circumflex accent -->  
 <!ENTITY ugrave "&#249;" -- small u, grave accent -->  
 <!ENTITY uuml "&#252;"   -- small u, dieresis or umlaut mark -->  
 <!ENTITY yacute "&#253;" -- small y, acute accent -->  
 <!ENTITY yuml "&#255;"   -- small y, dieresis or umlaut mark -->  
   
 <!-- deprecated elements -->  
   
 <!ELEMENT (%literal) - -  CDATA>  
135    
136  <!ELEMENT PLAINTEXT - O EMPTY>  <!ENTITY % list " UL | OL | DIR | MENU ">
   
 <!-- Local Variables: -->  
 <!-- mode: sgml -->  
 <!-- compile-command: "sgmls -s -p " -->  
 <!-- end: -->  
 ]>  
137    
138    <!ENTITY % block                -- as htext but also nested structure --
139                            "HR | %list | DL
140                            | %pre; | BLOCKQUOTE | FIG | ADDRESS
141                            | FORM">
142    
143    <!ELEMENT DL    - -  (DT*, DD?)+>
144    <!ATTLIST DL
145            STYLE (COMPACT) #IMPLIED>
146    
147    <!ELEMENT DT    - O (%htext)+>
148    <!ELEMENT DD    - O (%htext|%block)+>
149    
150    <!ELEMENT (%list) - -  (LI)+>
151    <!ELEMENT LI    - O (%htext|%block)+>
152    
153    <!ELEMENT BLOCKQUOTE - - ((%htext)+, ADDRESS?)+ -- @# Hmm... --
154            -- for quoting some other source -->
155    
156    <!ELEMENT ADDRESS - - (%htext;)+>
157    
158    <!ELEMENT FIG - - (%htext;)+>
159    
160    <!-- Forms  -->
161    
162    <!ENTITY % HTTP-Method "(GET | POST)">
163    <!ELEMENT FORM - - ANY -(FORM) +(INPUT|SELECT|TEXTAREA)>
164    <!ATTLIST FORM
165            ACTION %URL #REQUIRED
166            METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
167            ENCTYPE %Content-Type; #IMPLIED
168            >
169    
170    <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
171                            RADIO | SUBMIT | RESET |
172                            IMAGE | HIDDEN )">
173    <!ELEMENT INPUT - O EMPTY>
174    <!ATTLIST INPUT
175            TYPE %InputType #IMPLIED -- @# defaults to TEXT?? --
176            NAME CDATA #IMPLIED -- required for all but submit and reset --
177            VALUE CDATA #IMPLIED
178            SRC %URL #IMPLIED -- for image inputs --
179            STATE (CHECKED) #IMPLIED
180            SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
181            MAXLENGTH NUMBER #IMPLIED
182            ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
183            >
184    
185    <!ELEMENT SELECT - - (OPTION+)>
186    <!ATTLIST SELECT
187            NAME CDATA #REQUIRED
188            SIZE NUMBER #IMPLIED
189            SELECTIONS (MULTIPLE) #IMPLIED
190            >
191    
192    <!ELEMENT OPTION - O (#PCDATA)>
193    <!ATTLIST OPTION
194            STATE (SELECTED) #IMPLIED
195            VALUE CDATA #IMPLIED
196            >
197    
198    <!ELEMENT TEXTAREA - - (#PCDATA)>
199    <!ATTLIST TEXTAREA
200            NAME CDATA #REQUIRED
201            ROWS NUMBER #REQUIRED -- @#implied? --
202            COLS NUMBER #REQUIRED
203            >
204    
205    <!-- Mnemonic character entities. -->
206    
207    <!ENTITY % ISOlat1 PUBLIC
208      "ISO 8879:1986//ENTITIES Added Latin 1//EN">
209    %ISOlat1;
210    
211    <!ENTITY amp "&#38;"     -- ampersand -->
212    <!ENTITY gt "&#62;"      -- greater than -->
213    <!ENTITY lt "&#60;"      -- less than -->
214    <!ENTITY nbsp "<? nonbreaking-space>">
215    <!-- @# should add entites for processing instructions
216            for line break, centering, etc. -->
217    
     

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7.2.4

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24