/[suikacvs]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.2 by connolly, Thu Dec 3 02:04:29 1992 UTC revision 1.6 by connolly, Wed Mar 30 02:29:15 1994 UTC
# Line 1  Line 1 
1  <!SGML  "ISO 8879:1986"  <!SGML  "ISO 8879:1986"
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          NOTE: This is a definition of HTML with respect to
7          SGML, and assumes an understaning of SGML terms.          SGML, and assumes an understanding of SGML terms.
8    
9          For a description of HTML in layman's terms, see          If you find bugs in this DTD or find it does not compile
10            under some circumstances please mail www-bug@info.cern.ch
         "HTML: A Representation for Nodes in the World Wide Web"  
                 by Dan Connolly.  
   
         aka  
   
         http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html  
                 by <connolly@convex.com>  
11  --  --
12    
13  CHARSET  CHARSET
# Line 27  CHARSET Line 20  CHARSET
20                    14  18  UNUSED                    14  18  UNUSED
21                    32  95  32                    32  95  32
22                    127 1   UNUSED                    127 1   UNUSED
23         BASESET   "ISO Registration Number 100//CHARSET
24                    ECMA-94 Right Part of Latin Alphabet Nr. 1//ESC 2/13 4/1"
25         DESCSET   128 32 UNUSED
26                   160 95 32
27                   255  1 UNUSED
28    
29    
30    CAPACITY        SGMLREF
31                    TOTALCAP        150000
32                    GRPCAP          150000
33    
 CAPACITY        SGMLREF  
                 TOTALCAP        150000  
                 GRPCAP          150000  
     
34  SCOPE    DOCUMENT  SCOPE    DOCUMENT
35  SYNTAX    SYNTAX
36           SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18           SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
37                             19 20 21 22 23 24 25 26 27 28 29 30 31 127 255                             19 20 21 22 23 24 25 26 27 28 29 30 31 127 255
38           BASESET  "ISO 646:1983//CHARSET           BASESET  "ISO 646:1983//CHARSET
# Line 57  SYNTAX Line 56  SYNTAX
56                    TAGLVL   100                    TAGLVL   100
57                    LITLEN   1024                    LITLEN   1024
58                    GRPGTCNT 150                    GRPGTCNT 150
59                    GRPCNT   64                                      GRPCNT   64
60    
61  FEATURES  FEATURES
62    MINIMIZE    MINIMIZE
63      DATATAG  NO      DATATAG  NO
64      OMITTAG  YES      OMITTAG  NO
65      RANK     NO      RANK     NO
66      SHORTTAG NO      SHORTTAG NO
67    LINK    LINK
# Line 72  FEATURES Line 71  FEATURES
71    OTHER    OTHER
72      CONCUR   NO      CONCUR   NO
73      SUBDOC   NO      SUBDOC   NO
74      FORMAL   NO      FORMAL   YES
75    APPINFO    NONE    APPINFO    NONE
76  >  >
77    
78  <!DOCTYPE HTML [  <!DOCTYPE HTML [
79  <!--  <!-- Jul 1 93 -->
80   $Id$  <!--    Regarding clause 6.1, SGML Document:
 -->  
   
 <!--    Regarding clause 6.1, SGML Document:  
81    
82          [1] SGML document = SGML document entity,          [1] SGML document = SGML document entity,
83              (SGML subdocument entity |              (SGML subdocument entity |
84              SGML text entity | non-SGML data entity)*              SGML text entity | non-SGML data entity)*
85    
86          The role of SGML document entity is filled by this DTD,          The role of SGML document entity is filled by this DTD,
87          followed by the conventional HTML data stream.          followed by the conventional HTML data stream.
88  -->  -->
89    
90    <!-- DTD definitions -->
91    
92  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
93  <!ENTITY % list "UL|OL|DIR|MENU">  <!ENTITY % list " UL | OL | DIR | MENU ">
94  <!ENTITY % literal "XMP|LISTING">  <!ENTITY % literal " XMP | LISTING ">
95    
96  <!ENTITY % headelement  <!ENTITY % headelement
97           "TITLE | NEXTID | ISINDEX" >           " TITLE | NEXTID |ISINDEX" >
98    
99  <!ENTITY % bodyelement  <!ENTITY % bodyelement
100           "P | A | %heading | %list | DL | ADDRESS | PRE | %literal">           "P | HR | %heading |
101             %list | DL | ADDRESS | PRE | BLOCKQUOTE
102            | %literal">
103    
104    <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">
105    
106    <!ENTITY % URL "CDATA"
107            -- The term URL means a CDATA attribute
108               whose value is a Uniform Resource Locator,
109               as defined. (A URN may also be usable here when defined.)
110            -->
111    
112    <!ENTITY % linkattributes
113            "NAME NMTOKEN #IMPLIED
114            HREF %URL;  #IMPLIED
115            REL CDATA #IMPLIED -- forward relationship type --
116            REV CDATA #IMPLIED -- reversed relationship type
117                                  to referent data:
118    
119                                    PARENT CHILD, SIBLING, NEXT, TOP,
120                                    DEFINITION, UPDATE, ORIGINAL etc. --
121    
122            URN CDATA #IMPLIED -- universal resource number --
123    
124  <!ENTITY % anyelement "HEAD | %headelement; | BODY | %bodyelement;">          TITLE CDATA #IMPLIED -- advisory only --
125    
126  <!ELEMENT HTML O O  ((%anyelement|#PCDATA)*, PLAINTEXT?)>          METHODS NAMES #IMPLIED -- supported public methods of the object:
127                                            TEXTSEARCH, GET, HEAD, ... --
128    
129  <!ELEMENT HEAD - -  (TITLE? & ISINDEX? & NEXTID?)>          ">
130    
 <!ELEMENT BODY - -  (%bodyelement|#PCDATA)*>  
131    
132  <!ELEMENT TITLE - -  CDATA  <!-- Document Element -->
133            -- The TITLE element is not considered part of the flow of text.  
134               It should be displayed, for example as the page header or  <!ELEMENT HTML O O  (( HEAD | BODY | %oldstyle )*, PLAINTEXT?)>
135               window title.  
136            -->  <!ELEMENT HEAD - -  ( TITLE?  & ISINDEX?  & NEXTID?  & LINK*
137                                  & BASE?)>
138    
139    <!ELEMENT TITLE - -  RCDATA
140              -- The TITLE element is not considered part of the flow of text.
141                 It should be displayed, for example as the page header or
142                 window title.
143              -->
144    
145  <!ELEMENT ISINDEX - O EMPTY  <!ELEMENT ISINDEX - O EMPTY
146            -- WWW clients should offer the option to perform a search on            -- WWW clients should offer the option to perform a search on
147               documents containing ISINDEX.               documents containing ISINDEX.
148            -->            -->
149    
150  <!ELEMENT NEXTID - O EMPTY>  <!ELEMENT NEXTID - O EMPTY>
151  <!ATTLIST NEXTID N NUMBER #REQUIRED  <!ATTLIST NEXTID N NAME #REQUIRED
152            -- The number should be the highest number that appears in            -- The number should be a name suitable for use
153               any NAME attribute in the document.               for the ID of a new element. When used, the value
154            -->               has its numeric part incremented. EG Z67 becomes Z68
155                      -->
156  <!ENTITY % URL "CDATA"  <!ELEMENT LINK - O EMPTY>
157          -- The term URL means a CDATA attribute  <!ATTLIST LINK
158             whose value is a Universal Resource Locator,          %linkattributes>
159             as defined in ftp://info.cern.ch/pub/www/doc/url3.txt          
160          -->  <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->
161    <!ATTLIST BASE
162    
163            HREF %URL; #IMPLIED
164    
165            >
166    <!ENTITY % inline "EM | TT | STRONG | B | I | U |
167                            CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
168            >
169    
170    <!ELEMENT (%inline;) - - (#PCDATA)>
171    
172    <!ENTITY % text "#PCDATA | IMG | %inline;">
173    
174    <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
175    
176    <!ENTITY % stext                -- as htext but also nested structure --
177                            "P | HR | %list | DL | ADDRESS
178                            | PRE | BLOCKQUOTE
179                            | %literal | %htext">
180    
181    
182  <!ELEMENT A     - -  (#PCDATA)>  <!ELEMENT BODY - -  (%bodyelement|%htext;)*>
183    
184    
185    <!ELEMENT A     - -  (%text)>
186  <!ATTLIST A  <!ATTLIST A
187          NAME NMTOKEN #IMPLIED          %linkattributes;
188          HREF %URL; #IMPLIED          >
189          TEXT (PLAIN, X-HTML, X-RTF) #IMPLIED  
190          -- choose MIME text/plain or text/html content type --  <!ELEMENT IMG    - O EMPTY --  Embedded image -->
191          -- if not specified, inferred from HREF filename --  <!ATTLIST IMG
192          >          SRC %URL;  #IMPLIED     -- URL of document to embed --
193            >
194  <!ELEMENT P     - O EMPTY>  
195  <!-- P separates paragraphs -->  
196    <!ELEMENT P     - O EMPTY -- separates paragraphs -->
197  <!ELEMENT (%heading)    - -  (#PCDATA|A)+>  <!ELEMENT HR    - O EMPTY -- horizontal rule -->
198    
199  <!ELEMENT DL    - -  (DT|DD|A|P|#PCDATA)*>  <!ELEMENT ( %heading )  - -  (%htext;)+>
200  <!--    Content should match ((DT,(A|#PCDATA)+)+,(DD,(A|#PCDATA)+))  
201          But mixed content is messy.  <!ELEMENT DL    - -  (DT | DD | %stext;)*>
202    <!--    Content should match ((DT,(%htext;)+)+,(DD,(%stext;)+))
203            But mixed content is messy.  -Dan Connolly
204    -->    -->
205    
206  <!ELEMENT DT    - O EMPTY>  <!ELEMENT DT    - O EMPTY>
207  <!ELEMENT DD    - O EMPTY>  <!ELEMENT DD    - O EMPTY>
208    
209  <!ELEMENT (%list) - -  (#PCDATA|LI|A|P)+>  <!ELEMENT (UL|OL) - -  (%htext;|LI|P)+>
210  <!--    Content should match ((LI,(A|#PCDATA)+)+)  <!ELEMENT (DIR|MENU) - -  (%htext;|LI)+>
211          But mixed content is messy.  <!--    Content should match ((LI,(%htext;)+)+)
212            But mixed content is messy.
213    -->    -->
214    <!ATTLIST (%list)
215            COMPACT NAME #IMPLIED -- COMPACT, etc.--
216            >
217    
218    <!ELEMENT LI    - O EMPTY>
219    
220  <!ELEMENT LI    - O EMPTY>  <!ELEMENT BLOCKQUOTE - - (%htext;|P)+
221            -- for quoting some other source -->
222    
223  <!ELEMENT ADDRESS - - (#PCDATA|A|P)+>  <!ELEMENT ADDRESS - - (%htext;|P)+>
224    
225  <!ELEMENT PRE - - (#PCDATA|A|P)+>  <!ELEMENT PRE - - (#PCDATA|%inline|A|P)+>
226  <!ATTLIST PRE  <!ATTLIST PRE
227          WIDTH NUMBER 80          WIDTH NUMBER #implied
228          >          >
229    
230    <!-- Mnemonic character entities. -->
231    <!ENTITY AElig "&#198;"  -- capital AE diphthong (ligature) -->
232    <!ENTITY Aacute "&#193;" -- capital A, acute accent -->
233    <!ENTITY Acirc "&#194;"  -- capital A, circumflex accent -->
234    <!ENTITY Agrave "&#192;" -- capital A, grave accent -->
235    <!ENTITY Aring "&#197;"  -- capital A, ring -->
236    <!ENTITY Atilde "&#195;" -- capital A, tilde -->
237    <!ENTITY Auml "&#196;"   -- capital A, dieresis or umlaut mark -->
238    <!ENTITY Ccedil "&#199;" -- capital C, cedilla -->
239    <!ENTITY ETH "&#208;"    -- capital Eth, Icelandic -->
240    <!ENTITY Eacute "&#201;" -- capital E, acute accent -->
241    <!ENTITY Ecirc "&#202;"  -- capital E, circumflex accent -->
242    <!ENTITY Egrave "&#200;" -- capital E, grave accent -->
243    <!ENTITY Euml "&#203;"   -- capital E, dieresis or umlaut mark -->
244    <!ENTITY Iacute "&#205;" -- capital I, acute accent -->
245    <!ENTITY Icirc "&#206;"  -- capital I, circumflex accent -->
246    <!ENTITY Igrave "&#204;" -- capital I, grave accent -->
247    <!ENTITY Iuml "&#207;"   -- capital I, dieresis or umlaut mark -->
248    <!ENTITY Ntilde "&#209;" -- capital N, tilde -->
249    <!ENTITY Oacute "&#211;" -- capital O, acute accent -->
250    <!ENTITY Ocirc "&#212;"  -- capital O, circumflex accent -->
251    <!ENTITY Ograve "&#210;" -- capital O, grave accent -->
252    <!ENTITY Oslash "&#216;" -- capital O, slash -->
253    <!ENTITY Otilde "&#213;" -- capital O, tilde -->
254    <!ENTITY Ouml "&#214;"   -- capital O, dieresis or umlaut mark -->
255    <!ENTITY THORN "&#222;"  -- capital THORN, Icelandic -->
256    <!ENTITY Uacute "&#218;" -- capital U, acute accent -->
257    <!ENTITY Ucirc "&#219;"  -- capital U, circumflex accent -->
258    <!ENTITY Ugrave "&#217;" -- capital U, grave accent -->
259    <!ENTITY Uuml "&#220;"   -- capital U, dieresis or umlaut mark -->
260    <!ENTITY Yacute "&#221;" -- capital Y, acute accent -->
261    <!ENTITY aacute "&#225;" -- small a, acute accent -->
262    <!ENTITY acirc "&#226;"  -- small a, circumflex accent -->
263    <!ENTITY aelig "&#230;"  -- small ae diphthong (ligature) -->
264    <!ENTITY agrave "&#224;" -- small a, grave accent -->
265    <!ENTITY amp "&#38;"     -- ampersand -->
266    <!ENTITY aring "&#229;"  -- small a, ring -->
267    <!ENTITY atilde "&#227;" -- small a, tilde -->
268    <!ENTITY auml "&#228;"   -- small a, dieresis or umlaut mark -->
269    <!ENTITY ccedil "&#231;" -- small c, cedilla -->
270    <!ENTITY eacute "&#233;" -- small e, acute accent -->
271    <!ENTITY ecirc "&#234;"  -- small e, circumflex accent -->
272    <!ENTITY egrave "&#232;" -- small e, grave accent -->
273    <!ENTITY eth "&#240;"    -- small eth, Icelandic -->
274    <!ENTITY euml "&#235;"   -- small e, dieresis or umlaut mark -->
275    <!ENTITY gt "&#62;"      -- greater than -->
276    <!ENTITY iacute "&#237;" -- small i, acute accent -->
277    <!ENTITY icirc "&#238;"  -- small i, circumflex accent -->
278    <!ENTITY igrave "&#236;" -- small i, grave accent -->
279    <!ENTITY iuml "&#239;"   -- small i, dieresis or umlaut mark -->
280    <!ENTITY lt "&#60;"      -- less than -->
281    <!ENTITY nbsp "&#32;"    --  should be NON_BREAKING space -->
282    <!ENTITY ntilde "&#241;" -- small n, tilde -->
283    <!ENTITY oacute "&#243;" -- small o, acute accent -->
284    <!ENTITY ocirc "&#244;"  -- small o, circumflex accent -->
285    <!ENTITY ograve "&#242;" -- small o, grave accent -->
286    <!ENTITY oslash "&#248;" -- small o, slash -->
287    <!ENTITY otilde "&#245;" -- small o, tilde -->
288    <!ENTITY ouml "&#246;"   -- small o, dieresis or umlaut mark -->
289    <!ENTITY szlig "&#223;"  -- small sharp s, German (sz ligature) -->
290    <!ENTITY thorn "&#254;"  -- small thorn, Icelandic -->
291    <!ENTITY uacute "&#250;" -- small u, acute accent -->
292    <!ENTITY ucirc "&#251;"  -- small u, circumflex accent -->
293    <!ENTITY ugrave "&#249;" -- small u, grave accent -->
294    <!ENTITY uuml "&#252;"   -- small u, dieresis or umlaut mark -->
295    <!ENTITY yacute "&#253;" -- small y, acute accent -->
296    <!ENTITY yuml "&#255;"   -- small y, dieresis or umlaut mark -->
297    
298    <!-- deprecated elements -->
299    
300  <!ELEMENT (%literal) - -  CDATA>  <!ELEMENT (%literal) - -  CDATA>
301    
302  <!ELEMENT PLAINTEXT - O EMPTY>  <!ELEMENT PLAINTEXT - O EMPTY>
 <!--      The <PLAINTEXT> tag, if present, signals the end of the SGML  
           document entity. The data that follows serves as a non-SGML  
           data entity.  
   -->  
303    
304  <!--      Text Entities       -->  <!-- Local Variables: -->
305    <!-- mode: sgml -->
306    <!-- compile-command: "sgmls -s -p " -->
307    <!-- end: -->
308    ]>
309    
 <!-- Characters that may begin a delimiter-in-context sequence  
         From "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" -->  
 <!ENTITY lt "<">  
 <!ENTITY gt ">">  
 <!ENTITY amp "&">  
   
 <!-- Characters from various Latin alphabets. -->  
 <!ENTITY % ISOlat1 PUBLIC  
        "ISO 8879:1986//ENTITIES Added Latin 1//EN">  
 %ISOlat1;  
310    
311  ]>  
312    
313    
314    
315    
316    
317    
318    
319    
320    
321      

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24