/[pub]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.7 by connolly, Fri Apr 1 19:21:25 1994 UTC revision 1.18 by connolly, Wed Jul 20 16:24:43 1994 UTC
# Line 1  Line 1 
1  <!--    html.dtd  <!--    html.dtd
2    
3          Document Type Definition for the HyperText Markup Language          Document Type Definition for the HyperText Markup Language (HTML DTD)
         as used by the World Wide Web application (HTML DTD).  
4    
5          $Id$          $Id$
6    
7            Author: Daniel W. Connolly <connolly@hal.com>
8            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            "+//ISBN 82-7640-037::WWW//DTD HTML//EN//2.0"
15    
16            -- Typical usage:
17    
18                <!DOCTYPE HTML PUBLIC "+//ISBN 82-7640-037::WWW//DTD HTML//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    
39    <!ENTITY % html-1 PUBLIC "+//ISBN 82-7640-037::WWW//DTD HTML Level 1//EN//2.0">
40    %html-1;
41    
42    
43    <!-- Forms  -->
44    
45    <!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)>
46    <!ATTLIST FORM
47            ACTION %URI #REQUIRED
48            METHOD (%HTTP-Method) GET
49            ENCTYPE %Content-Type; "application/x-www-form-urlencoded"
50            >
51    
52    <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
53                            RADIO | SUBMIT | RESET |
54                            IMAGE | HIDDEN )">
55    <!ELEMENT INPUT - O EMPTY>
56    <!ATTLIST INPUT
57            TYPE %InputType TEXT
58            NAME CDATA #IMPLIED -- required for all but submit and reset --
59            VALUE CDATA #IMPLIED
60            SRC %URI #IMPLIED -- for image inputs --
61            CHECKED (CHECKED) #IMPLIED
62            SIZE CDATA #IMPLIED -- like NUMBERS,
63                                     but delimited with comma, not space --
64            MAXLENGTH NUMBER #IMPLIED
65            ALIGN (top|middle|bottom) #IMPLIED
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
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 | HR | %heading |  
          %list | DL | ADDRESS | PRE | BLOCKQUOTE  
         | %literal">  
   
 <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">  
   
 <!ENTITY % URL "CDATA"  
         -- The term URL means a CDATA attribute  
            whose value is a Uniform Resource Locator,  
            as defined. (A URN may also be usable here when defined.)  
         -->  
   
 <!ENTITY % linkattributes  
         "NAME NMTOKEN #IMPLIED  
         HREF %URL;  #IMPLIED  
         REL CDATA #IMPLIED -- forward relationship type --  
         REV CDATA #IMPLIED -- reversed relationship type  
                               to referent data:  
   
                                 PARENT CHILD, SIBLING, NEXT, TOP,  
                                 DEFINITION, UPDATE, ORIGINAL etc. --  
   
         URN CDATA #IMPLIED -- universal resource number --  
   
         TITLE CDATA #IMPLIED -- advisory only --  
   
         METHODS NAMES #IMPLIED -- supported public methods of the object:  
                                         TEXTSEARCH, GET, HEAD, ... --  
   
         ">  
   
   
 <!-- Document Element -->  
   
 <!ELEMENT HTML O O  (( HEAD | BODY | %oldstyle )*, PLAINTEXT?)>  
   
 <!ELEMENT HEAD - -  ( TITLE?  & ISINDEX?  & NEXTID?  & LINK*  
                               & BASE?)>  
   
 <!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 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  
           -->  
 <!ELEMENT LINK - O EMPTY>  
 <!ATTLIST LINK  
         %linkattributes>  
           
 <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->  
 <!ATTLIST BASE  
   
         HREF %URL; #IMPLIED  
   
         >  
 <!ENTITY % inline "EM | TT | STRONG | B | I | U |  
                         CODE | SAMP | KBD | KEY | VAR | DFN | CITE "  
         >  
   
 <!ELEMENT (%inline;) - - (#PCDATA)>  
   
 <!ENTITY % text "#PCDATA | IMG | %inline;">  
   
 <!ENTITY % htext "A | %text"    -- Plus links, no structure -->  
   
 <!ENTITY % stext                -- as htext but also nested structure --  
                         "P | HR | %list | DL | ADDRESS  
                         | PRE | BLOCKQUOTE  
                         | %literal | %htext">  
   
   
 <!ELEMENT BODY - -  (%bodyelement|%htext;)*>  
   
   
 <!ELEMENT A     - -  (%text)>  
 <!ATTLIST A  
         %linkattributes;  
         >  
   
 <!ELEMENT IMG    - O EMPTY --  Embedded image -->  
 <!ATTLIST IMG  
         SRC %URL;  #IMPLIED     -- URL of document to embed --  
         >  
   
   
 <!ELEMENT P     - O EMPTY -- separates paragraphs -->  
 <!ELEMENT HR    - O EMPTY -- horizontal rule -->  
   
 <!ELEMENT ( %heading )  - -  (%htext;)+>  
   
 <!ELEMENT DL    - -  (DT | DD | %stext;)*>  
 <!--    Content should match ((DT,(%htext;)+)+,(DD,(%stext;)+))  
         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.--  
         >  
   
 <!ELEMENT LI    - O EMPTY>  
   
 <!ELEMENT BLOCKQUOTE - - (%htext;|P)+  
         -- for quoting some other source -->  
   
 <!ELEMENT ADDRESS - - (%htext;|P)+>  
   
 <!ELEMENT PRE - - (#PCDATA|%inline|A|P)+>  
 <!ATTLIST PRE  
         WIDTH NUMBER #implied  
         >  
   
 <!-- Mnemonic character entities. -->  
 <!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>  
   
 <!ELEMENT PLAINTEXT - O EMPTY>  
   
 <!-- Local Variables: -->  
 <!-- mode: sgml -->  
 <!-- compile-command: "sgmls -s -p " -->  
 <!-- end: -->  

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.18

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24