/[pub]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.4 by connolly, Wed Feb 3 21:30:13 1993 UTC revision 1.7.2.4 by connolly, Thu Apr 7 00:33:25 1994 UTC
# Line 1  Line 1 
1  <!--  <!--    html.dtd
  $Id$  
 -->  
   
 <!--    Regarding clause 6.1, SGML Document:  
2    
3          [1] SGML document = SGML document entity,          Document Type Definition for the HyperText Markup Language
4              (SGML subdocument entity |          as used by the World Wide Web application (HTML DTD).
             SGML text entity | non-SGML data entity)*  
5    
6          The role of SGML document entity is filled by this DTD,          $Id$
         followed by the conventional HTML data stream.  
7  -->  -->
8    
 <!-- DTD definitions -->  
   
 <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >  
 <!ENTITY % list "UL|OL|DIR|MENU">  
 <!ENTITY % literal "XMP|LISTING">  
   
 <!ENTITY % headelement  
          "TITLE | NEXTID | ISINDEX" >  
9    
10  <!ENTITY % bodyelement  <!-- DTD definitions -->
          "P | %heading |  
          %list | DL | HEADERS | ADDRESS | PRE | BLOCKQUOTE  
         | %literal">  
11    
 <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">  
12  <!ENTITY % URL "CDATA"  <!ENTITY % URL "CDATA"
13          -- The term URL means a CDATA attribute          -- The term URL means a CDATA attribute
14             whose value is a Universal Resource Locator,             whose value is a Uniform Resource Locator,
15             as defined in ftp://info.cern.ch/pub/www/doc/url3.txt             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
22          HREF %URL; #IMPLIED          REL CDATA #IMPLIED -- forward relationship type --
23          TYPE NAME #IMPLIED -- type of relashionship to referent data:          REV CDATA #IMPLIED -- reversed relationship type
24                                  to referent data:
25    
26                                  PARENT CHILD, SIBLING, NEXT, TOP,                                  PARENT CHILD, SIBLING, NEXT, TOP,
27                                   DEFINITION, UPDATE, ORIGINAL etc. --                                  DEFINITION, UPDATE, ORIGINAL etc. --
28          URN CDATA #IMPLIED -- universal resource number. unique doc id --  
29            URN CDATA #IMPLIED -- universal resource number --
30    
31          TITLE CDATA #IMPLIED -- advisory only --          TITLE CDATA #IMPLIED -- advisory only --
32          METHODS NAMES #IMPLIED -- supported methods of the object:  
33            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 TITLE - -  RCDATA  <!ELEMENT HEAD O O  ( TITLE?  & ISINDEX? & NEXTID? & LINK*
47                                  & BASE?)>
48    
49    <!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 61  Line 60 
60            -- WWW clients should offer the option to perform a search on            -- WWW clients should offer the option to perform a search on
61               documents containing ISINDEX.               documents containing ISINDEX.
62            -->            -->
   
 <!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.  
           -->  
63    
64  <!ELEMENT LINK - O EMPTY>  <!ELEMENT LINK - O EMPTY>
65  <!ATTLIST LINK  <!ATTLIST LINK
66          %linkattributes>          %linkattributes
67            >
68                    
69  <!ENTITY % inline "EM | TT | STRONG | B | I | U |  <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->
70    <!ATTLIST BASE
71            HREF %URL; #IMPLIED
72            >
73    
74    
75    <!-- Body -->
76    
77    <!ELEMENT BODY O O  ANY -- empty P version @# -->
78    
79    <!-- Text -->
80    
81    <!ENTITY % inline "EM | STRONG |
82                          CODE | SAMP | KBD | KEY | VAR | DFN | CITE "                          CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
83          >          >
84    <!ENTITY % fonts "B | I | U | TT">
85    
86  <!ELEMENT (%inline;) - - (#PCDATA)>  <!ENTITY % text "#PCDATA | IMG | %inline; | %fonts; | BR | P"
87            -- @# yuk: P in textflows --
88             --@# BR -> &br; --
89             --@# yuk: fonts -- >
90    
91  <!ENTITY % hypertext "#PCDATA | %inline; | A">  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
92    
93  <!ELEMENT BODY - -  (%bodyelement|%hypertext;)*>  <!ELEMENT (%inline;) - - (%htext)+>
94    <!ELEMENT (%fonts;)  - - (%htext)+>
95    
96  <!ELEMENT A     - -  (#PCDATA)>  <!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 P     - O EMPTY -- separates paragraphs -->  <!ELEMENT IMG    - O EMPTY --  Embedded image -->
103    <!ATTLIST IMG
104            SRC %URL;  #IMPLIED     -- URL of document to embed --
105            ALT CDATA #IMPLIED
106            ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
107            >
108    
 <!ELEMENT (%heading)    - -  (%hypertext;)+>  
109    
110  <!ELEMENT DL    - -  (DT | DD | P | %hypertext;)*>  <!ELEMENT P     - O EMPTY -- paragraph separator @# -->
111  <!--    Content should match ((DT,(%hypertext;)+)+,(DD,(%hypertext;)+))  <!ELEMENT HR    - O EMPTY -- horizontal rule -->
112          But mixed content is messy.  <!ELEMENT BR    - O EMPTY -- @# BR -> &br; -->
   -->  
 <!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.  
   -->  
113    
114  <!ELEMENT LI    - O EMPTY>  <!-- Headings -->
115    
116  <!ELEMENT BLOCKQUOTE - - (%hypertext;|P)+  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
117          -- for quoting some other source -->  <!ELEMENT ( %heading )  - -  (%htext;)+>
118  <!ATTLIST BLOCKQUOTE  
119          SOURCE CDATA #IMPLIED -- URL of source --  
120          >  <!-- Pre-formatted Text -->
121    
122  <!ELEMENT ADDRESS - - (%hypertext;|P)+>  <!ENTITY % pre "PRE | XMP | LISTING" -- @# treat XMP like pre? -->
123    
124  <!ELEMENT PRE - - (#PCDATA | A | B | I | U | 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    <!-- Block Elements -->
135    
136    <!ENTITY % list " UL | OL | DIR | MENU ">
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. -->  <!-- Mnemonic character entities. -->
206  <!ENTITY AElig "&#198;" -- capital AE diphthong (ligature) -->  
207  <!ENTITY Aacute "&#193;" -- capital A, acute accent -->  <!ENTITY % ISOlat1 PUBLIC
208  <!ENTITY Acirc "&#194;" -- capital A, circumflex accent -->    "ISO 8879:1986//ENTITIES Added Latin 1//EN">
209  <!ENTITY Agrave "&#192;" -- capital A, grave accent -->  %ISOlat1;
210  <!ENTITY Aring "&#197;" -- capital A, ring -->  
211  <!ENTITY Atilde "&#195;" -- capital A, tilde -->  <!ENTITY amp "&#38;"     -- ampersand -->
212  <!ENTITY Auml "&#196;" -- capital A, dieresis or umlaut mark -->  <!ENTITY gt "&#62;"      -- greater than -->
213  <!ENTITY Ccedil "&#199;" -- capital C, cedilla -->  <!ENTITY lt "&#60;"      -- less than -->
214  <!ENTITY ETH "&#208;" -- capital Eth, Icelandic -->  <!ENTITY nbsp "<? nonbreaking-space>">
215  <!ENTITY Eacute "&#201;" -- capital E, acute accent -->  <!-- @# should add entites for processing instructions
216  <!ENTITY Ecirc "&#202;" -- capital E, circumflex accent -->          for line break, centering, etc. -->
217  <!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 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.4  
changed lines
  Added in v.1.7.2.4

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24