/[suikacvs]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.8 by connolly, Sat Apr 9 01:02:10 1994 UTC revision 1.14 by connolly, Fri Jun 3 20:02:52 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
4          as used by the World Wide Web application (HTML DTD).          as used by the World Wide Web (HTML DTD).
5    
6          $Id$          $Id$
7    
8            Author: Daniel W. Connolly <connolly@hal.com>
9            See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html
10                      http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html
11  -->  -->
12    
13    <!ENTITY HTML.Version
14            "-//W3O//DTD WWW HTML 2.0//EN"
15            -- public identifier for "current pracitice" version             --
16    
17            -- Typical usage:
18    
19                <!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN">
20                <html>
21                ...
22                </html>
23            --
24            >
25    
26    
27  <!-- Feature Test Entities -->  <!-- Feature Test Entities -->
28    
29  <!-- To use these, write your document like:  <!-- To use these, write your document like:
# Line 23  Line 41 
41          sgmls -s doctype.sgml foo.html          sgmls -s doctype.sgml foo.html
42   -->   -->
43    
44  <!ENTITY % HTML.Minimal  "IGNORE">  <!ENTITY % HTML.Level0  "IGNORE">
45  <!ENTITY % HTML.Obsolete "IGNORE">  <!ENTITY % HTML.Obsolete "IGNORE">
46    <!ENTITY % HTML.Prescriptive "IGNORE">
47    
48  <![ %HTML.Minimal [  <![ %HTML.Level0 [
49          <!ENTITY % HTML.linkRelationships "IGNORE">          <!ENTITY % HTML.linkRelationships "IGNORE">
50          <!ENTITY % HTML.linkMethods "IGNORE">          <!ENTITY % HTML.linkMethods "IGNORE">
51          <!ENTITY % HTML.linkRedundantInfo "IGNORE">          <!ENTITY % HTML.linkRedundantInfo "IGNORE">
52          <!ENTITY % HTML.forms "IGNORE">          <!ENTITY % HTML.forms "IGNORE">
53          <!-- @@ nested lists -->          <!ENTITY % HTML.phrase "IGNORE">
54          <!-- @@ phrases -->          <!ENTITY % HTML.NEXTID "IGNORE">
55            <!-- @# Are the following required for conformance? -->
56            <!-- @# nested lists -->
57            <!-- @# IMG -->
58            <!-- @# headers inside A -->
59            <!-- @# nested phrases, fonts -->
60          ]]>          ]]>
61                    
62  <![ %HTML.Obsolete [  <![ %HTML.Obsolete [
         <!ENTITY % HTML.PLAINTEXT "INCLUDE">  
63          <!ENTITY % HTML.titleCDATA "INCLUDE">          <!ENTITY % HTML.titleCDATA "INCLUDE">
64          <!ENTITY % HTML.litCDATA "INCLUDE">          <!ENTITY % HTML.litCDATA "INCLUDE">
         <!ENTITY % HTML.NEXTID "INCLUDE">  
         <!ENTITY % HTML.font-phrase "INCLUDE">  
         <!ENTITY % HTML.anchorNameCDATA "INCLUDE">  
65          <!ENTITY % HTML.pSeparator "INCLUDE">          <!ENTITY % HTML.pSeparator "INCLUDE">
66          ]]>          ]]>
67    
68    <![ %HTML.Prescriptive [
69            <!--
70            This feature test entity prescribes that certain
71            idioms detract from the structural integrity of an
72            HTML document, and are therefore disallowed.
73            -->
74            <!ENTITY % HTML.font-phrase "IGNORE">
75            <!ENTITY % HTML.anchorNameCDATA "IGNORE">
76            <!ENTITY % HTML.PLAINTEXT "IGNORE">
77            <!ENTITY % HTML.bodyBlockOnly "INCLUDE">
78            ]]>
79    
80    <!ENTITY % HTML.phrase "INCLUDE"
81            -- phrase markup, ala TeXinfo: TT, EM, etc.
82            -->
83    
84    <!ENTITY % HTML.bodyBlockOnly "IGNORE"
85            -- only allow block elements in the BODY element
86            This means all paragraphs need to start with a <P> tag.
87            -->
88    
89  <!ENTITY % HTML.pSeparator "IGNORE"  <!ENTITY % HTML.pSeparator "IGNORE"
90          -- use P element as paragraph separator, rather that container.          -- use P element as paragraph separator, rather that container.
         This means not all paragraphs need to start with a <P> tag.  
91          -->          -->
92    
93  <!ENTITY % HTML.linkRelationships "INCLUDE"  <!ENTITY % HTML.linkRelationships "INCLUDE"
# Line 67  Line 107 
107          like URN, content type, title...          like URN, content type, title...
108          -->          -->
109    
110  <!ENTITY % HTML.anchorNameCDATA "IGNORE"  <!ENTITY % HTML.anchorNameCDATA "INCLUDE"
111          -- Anchor names should be distinct. SGML parser can validate          -- Anchor names should be distinct. SGML parser can validate
112          this if the NAME attribute of the A element is declared as ID.          this if the NAME attribute of the A element is declared as ID.
113          But that restricts the syntax of an anchor name to an SGML name,          But that restricts the syntax of an anchor name to an SGML name,
# Line 75  Line 115 
115          up to NAMELEN (34) characters long.          up to NAMELEN (34) characters long.
116          -->          -->
117    
118  <!ENTITY % HTML.PLAINTEXT "IGNORE"  <!ENTITY % HTML.PLAINTEXT "INCLUDE"
119          -- Support for the <PLAINTEXT> tag as a sign of the          -- Support for the <PLAINTEXT> tag as a sign of the
120          end of th HTML data stream and the beginning of a stream          end of th HTML data stream and the beginning of a stream
121          of text/plain data          of text/plain data
# Line 87  Line 127 
127          it's more like CDATA, but not quite.          it's more like CDATA, but not quite.
128          -->          -->
129    
130  <!ENTITY % HTML.NEXTID "IGNORE"  <!ENTITY % HTML.NEXTID "INCLUDE"
131          -- Used by the NeXT implementation to keep track of the          -- Used by the NeXT implementation to keep track of the
132          next anchor id to use          next anchor id to use
133          -->          -->
134    
135  <!ENTITY % HTML.font-phrase "IGNORE"  <!ENTITY % HTML.font-phrase "INCLUDE"
136          -- allow B, I, TT, U outside PRE,          -- allow B, I, TT, U outside PRE,
137          CITE, VAR, etc. inside PRE          CITE, VAR, etc. inside PRE
138          -->          -->
139    
140    <!ENTITY % HTML.KEY "IGNORE"
141            -- There was once a KEY element, for keyboard keys, menu items,
142            buttons, etc. but it's not supported or widely documented
143            -->
144    
145    <!ENTITY % HTML.U "IGNORE"
146            -- There was also a U element, but since it clashes with
147            the common pracitce of underlining hypertext links, it is
148            not widely supported
149            -->
150    
151  <!ENTITY % HTML.litCDATA "IGNORE"  <!ENTITY % HTML.litCDATA "IGNORE"
152          -- treat XMP, LISTING as CDATA, as per linemodeWWW          -- treat XMP, LISTING as CDATA, as per linemodeWWW
153          -->          -->
# Line 122  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 173  http://www.ncsa.uiuc.edu/SDG/Software/Mo
173          Note that CDATA attributes are limited by the LITLEN          Note that CDATA attributes are limited by the LITLEN
174          capacity (1024 in the current version of html.decl),          capacity (1024 in the current version of html.decl),
175          so that URIs in HTML have a bounded length.          so that URIs in HTML have a bounded length.
176    
177          -->          -->
178    
179  <!ENTITY % Content-Type "CDATA"  <!ENTITY % Content-Type "CDATA"
180          -- meaning a MIME content type, as per RFC1341 or any of its updates.          -- meaning a MIME content type, as per RFC1521
181          -->          -->
182    
183  <![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]>  <![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]>
# Line 166  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 218  http://www.ncsa.uiuc.edu/SDG/Software/Mo
218  <!-- Document Element -->  <!-- Document Element -->
219    
220    
221  <![ %HTML.PLAINTEXT [ <!ENTITY % html-content "(HEAD, BODY), PLAINTEXT?"> ]]>  <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>
222  <!ENTITY % html-content "HEAD, BODY">  <!ENTITY % obsolete-plaintext "">
223    
224    <!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;">
225  <!ELEMENT HTML O O  (%html-content)>  <!ELEMENT HTML O O  (%html-content)>
226    
227  <![ %HTML.NEXTID [  <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE?  <![ %HTML.NEXTID [  <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE?
# Line 201  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 255  http://www.ncsa.uiuc.edu/SDG/Software/Mo
255  <!ELEMENT BASE - O EMPTY    -- Reference context for URIs -->  <!ELEMENT BASE - O EMPTY    -- Reference context for URIs -->
256  <!ATTLIST BASE  <!ATTLIST BASE
257    
258          HREF %URI; #IMPLIED          HREF %URI; #REQUIRED
259    
260          >          >
261    
262  <!ENTITY % font "TT | B | I | U ">  <![ %HTML.KEY [
263  <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE">          <!ENTITY % key-emph "| KEY">
264            ]]>
265    <!ENTITY % key-emph "">
266    
267    <![ %HTML.U [
268            <!ENTITY % u-font "| U">
269            ]]>
270    <!ENTITY % u-font "">
271    
272    <![ %HTML.phrase [
273    <!ENTITY % font "TT | B | I %u-font">
274    <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE
275             | STRIKE %key-emph">
276    
277    
278  <![ %HTML.font-phrase [  <![ %HTML.font-phrase [
279          <!ENTITY % obsolete-font "| %font">          <!ENTITY % obsolete-font "| %font">
# Line 221  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 288  http://www.ncsa.uiuc.edu/SDG/Software/Mo
288    
289  <!ENTITY % inline "%phrase %obsolete-font">  <!ENTITY % inline "%phrase %obsolete-font">
290  <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">  <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">
291    ]]>
292    
293    <!ENTITY % inline "">
294    <!ENTITY % pre-inline "">
295    
296  <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">  <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">
297    
# Line 230  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 301  http://www.ncsa.uiuc.edu/SDG/Software/Mo
301  <!ENTITY % font-content "#PCDATA">  <!ENTITY % font-content "#PCDATA">
302  <!ELEMENT (%font;) - - (%font-content;)>  <!ELEMENT (%font;) - - (%font-content;)>
303    
304    <![ %HTML.phrase [
305  <!ELEMENT (%phrase;) - - (%htext)+>  <!ELEMENT (%phrase;) - - (%htext)+>
306    ]]>
307    
308  <!ENTITY % pre "PRE | XMP | LISTING">  <!ENTITY % pre "PRE | XMP | LISTING">
309    
310  <![ %HTML.forms [ <!ENTITY % block-form "| FORM"> ]]>  <![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]>
311  <!ENTITY % block-form "">  <!ENTITY % block-form "">
312    
313  <![ %HTML.pSeparator [  <![ %HTML.pSeparator [
# Line 249  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 322  http://www.ncsa.uiuc.edu/SDG/Software/Mo
322                  %block-form %block-p">                  %block-form %block-p">
323    
324    
325  <!ENTITY % body-content "%heading | %block %obsolete-htext">  <![ %HTML.bodyBlockOnly [
326            <!ENTITY % current-htext "">
327            ]]>
328    <!ENTITY % current-htext "| %htext">
329    
330    <!ENTITY % body-content "%heading | %block %current-htext">
331  <!ELEMENT BODY O O  (%body-content)*>  <!ELEMENT BODY O O  (%body-content)*>
332    
333    
334  <!ELEMENT A     - -  (%heading|%block|%text)+ -(A)  <!ELEMENT A     - - (%heading|%block|%text)+ -(A)
335          -- @# Technically, this allows silliness like:          -- @# Technically, this allows silliness like:
336                  <H2><A>xyz<H1>h1</H1></A></H2>                  <H2><A>xyz<H1>h1</H1></A></H2>
337          The right way to do anchors outside of %htext is more like:          The right way to do anchors outside of %htext is more like:
# Line 282  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 360  http://www.ncsa.uiuc.edu/SDG/Software/Mo
360    
361  <!ELEMENT DL    - -  (DT*, DD?)+>  <!ELEMENT DL    - -  (DT*, DD?)+>
362  <!ATTLIST DL  <!ATTLIST DL
363          STYLE (COMPACT) #IMPLIED>          COMPACT (COMPACT) #IMPLIED>
364    
365  <!ELEMENT DT    - O (%htext)+>  <!ELEMENT DT    - O (%htext)+>
366  <!ELEMENT DD    - O (%htext|%block)+>  <!ELEMENT DD    - O (%htext|%block)+>
# Line 291  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 369  http://www.ncsa.uiuc.edu/SDG/Software/Mo
369    
370  <!ELEMENT LI    - O (%htext|%block)+>  <!ELEMENT LI    - O (%htext|%block)+>
371    
372  <!ELEMENT BLOCKQUOTE - - ((%htext)+, ADDRESS?)+ -- @# Hmm... --  <!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... --
373          -- for quoting some other source -->          -- for quoting some other source -->
374    
375  <!ELEMENT ADDRESS - - (%htext;)+>  <!ELEMENT ADDRESS - - (%htext;|%block)+>
376    
377  <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>  <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>
378  <!ATTLIST PRE  <!ATTLIST PRE
# Line 307  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 385  http://www.ncsa.uiuc.edu/SDG/Software/Mo
385    "ISO 8879:1986//ENTITIES Added Latin 1//EN">    "ISO 8879:1986//ENTITIES Added Latin 1//EN">
386  %ISOlat1;  %ISOlat1;
387    
388  <!ENTITY amp "&#38;"     -- ampersand -->  <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->
389  <!ENTITY gt "&#62;"      -- greater than -->  <!ENTITY amp CDATA "&#38;"     -- ampersand -->
390  <!ENTITY lt "&#60;"      -- less than -->  <!ENTITY gt CDATA "&#62;"      -- greater than -->
391    <!ENTITY lt CDATA "&#60;"      -- less than -->
392    <!ENTITY quot CDATA "&#34;"    -- double quote -->
393    
394    <!-- Processing Entities -->
395    
396  <!ENTITY nbsp "<? nonbreaking-space>">  <!ENTITY nbsp "<? nonbreaking-space>">
397  <!-- @# should add entites for processing instructions  <!-- @# should add entites for processing instructions
398          for line break, centering, etc. -->          for line break, centering, etc. -->
399    
400    
 <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>  
 <!ENTITY % lit-content "RCDATA">  
 <!ELEMENT (%literal) - -  %lit-content>  
   
 <![ %HTML.PLAINTEXT [  
 <!ELEMENT PLAINTEXT - O EMPTY>  
 ]]>  
   
   
401  <!-- Forms  -->  <!-- Forms  -->
402  <![ %HTML.forms [  <![ %HTML.forms [
403    
404  <!ENTITY % HTTP-Method "(GET | POST)">  <!ENTITY % HTTP-Method "(GET | POST)">
405  <!ELEMENT FORM - - (%body-content) -(FORM) +(INPUT|SELECT|TEXTAREA)>  <!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)>
406  <!ATTLIST FORM  <!ATTLIST FORM
407          ACTION %URI #REQUIRED          ACTION %URI #REQUIRED
408          METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --          METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
# Line 344  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 418  http://www.ncsa.uiuc.edu/SDG/Software/Mo
418          NAME CDATA #IMPLIED -- required for all but submit and reset --          NAME CDATA #IMPLIED -- required for all but submit and reset --
419          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
420          SRC %URI #IMPLIED -- for image inputs --          SRC %URI #IMPLIED -- for image inputs --
421          STATE (CHECKED) #IMPLIED          CHECKED (CHECKED) #IMPLIED
422          SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --          SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
423          MAXLENGTH NUMBER #IMPLIED          MAXLENGTH NUMBER #IMPLIED
424          ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--          ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
# Line 354  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 428  http://www.ncsa.uiuc.edu/SDG/Software/Mo
428  <!ATTLIST SELECT  <!ATTLIST SELECT
429          NAME CDATA #REQUIRED          NAME CDATA #REQUIRED
430          SIZE NUMBER #IMPLIED          SIZE NUMBER #IMPLIED
431          SELECTIONS (MULTIPLE) #IMPLIED          MULTIPLE (MULTIPLE) #IMPLIED
432          >          >
433    
434  <!ELEMENT OPTION - O (#PCDATA)>  <!ELEMENT OPTION - O (#PCDATA)>
435  <!ATTLIST OPTION  <!ATTLIST OPTION
436          STATE (SELECTED) #IMPLIED          SELECTED (SELECTED) #IMPLIED
437          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
438          >          >
439    
# Line 371  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 445  http://www.ncsa.uiuc.edu/SDG/Software/Mo
445          >          >
446  ]]>  ]]>
447    
448    <!-- Obsolete Elements  -->
449    
450    <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>
451    <!ENTITY % lit-content "RCDATA">
452    <!ELEMENT (%literal) - -  %lit-content>
453    
454    <![ %HTML.PLAINTEXT [
455    <!ELEMENT PLAINTEXT - O EMPTY>
456    ]]>

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.14

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24