/[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.15 by connolly, Fri Jun 3 22:09:14 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    <!ENTITY % font "TT | B | I %u-font">
273    <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE
274             | STRIKE %key-emph">
275    
276    
277  <![ %HTML.font-phrase [  <![ %HTML.font-phrase [
278          <!ENTITY % obsolete-font "| %font">          <!ENTITY % obsolete-font "| %font">
# Line 222  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 288  http://www.ncsa.uiuc.edu/SDG/Software/Mo
288  <!ENTITY % inline "%phrase %obsolete-font">  <!ENTITY % inline "%phrase %obsolete-font">
289  <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">  <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">
290    
291    <!ENTITY % inline "">
292    <!ENTITY % pre-inline "">
293    
294  <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">  <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">
295    
296  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
# Line 230  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 299  http://www.ncsa.uiuc.edu/SDG/Software/Mo
299  <!ENTITY % font-content "#PCDATA">  <!ENTITY % font-content "#PCDATA">
300  <!ELEMENT (%font;) - - (%font-content;)>  <!ELEMENT (%font;) - - (%font-content;)>
301    
302    <![ %HTML.phrase [
303  <!ELEMENT (%phrase;) - - (%htext)+>  <!ELEMENT (%phrase;) - - (%htext)+>
304    ]]>
305    
306  <!ENTITY % pre "PRE | XMP | LISTING">  <!ENTITY % pre "PRE | XMP | LISTING">
307    
308  <![ %HTML.forms [ <!ENTITY % block-form "| FORM"> ]]>  <![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]>
309  <!ENTITY % block-form "">  <!ENTITY % block-form "">
310    
311  <![ %HTML.pSeparator [  <![ %HTML.pSeparator [
# Line 249  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 320  http://www.ncsa.uiuc.edu/SDG/Software/Mo
320                  %block-form %block-p">                  %block-form %block-p">
321    
322    
323  <!ENTITY % body-content "%heading | %block %obsolete-htext">  <![ %HTML.bodyBlockOnly [
324            <!ENTITY % current-htext "">
325            ]]>
326    <!ENTITY % current-htext "| %htext">
327    
328    <!ENTITY % body-content "%heading | %block %current-htext">
329  <!ELEMENT BODY O O  (%body-content)*>  <!ELEMENT BODY O O  (%body-content)*>
330    
331    
332  <!ELEMENT A     - -  (%heading|%block|%text)+ -(A)  <!ELEMENT A     - - (%heading|%block|%text)+ -(A)
333          -- @# Technically, this allows silliness like:          -- @# Technically, this allows silliness like:
334                  <H2><A>xyz<H1>h1</H1></A></H2>                  <H2><A>xyz<H1>h1</H1></A></H2>
335          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 358  http://www.ncsa.uiuc.edu/SDG/Software/Mo
358    
359  <!ELEMENT DL    - -  (DT*, DD?)+>  <!ELEMENT DL    - -  (DT*, DD?)+>
360  <!ATTLIST DL  <!ATTLIST DL
361          STYLE (COMPACT) #IMPLIED>          COMPACT (COMPACT) #IMPLIED>
362    
363  <!ELEMENT DT    - O (%htext)+>  <!ELEMENT DT    - O (%htext)+>
364  <!ELEMENT DD    - O (%htext|%block)+>  <!ELEMENT DD    - O (%htext|%block)+>
# Line 291  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 367  http://www.ncsa.uiuc.edu/SDG/Software/Mo
367    
368  <!ELEMENT LI    - O (%htext|%block)+>  <!ELEMENT LI    - O (%htext|%block)+>
369    
370  <!ELEMENT BLOCKQUOTE - - ((%htext)+, ADDRESS?)+ -- @# Hmm... --  <!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... --
371          -- for quoting some other source -->          -- for quoting some other source -->
372    
373  <!ELEMENT ADDRESS - - (%htext;)+>  <!ELEMENT ADDRESS - - (%htext;|%block)+>
374    
375  <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>  <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>
376  <!ATTLIST PRE  <!ATTLIST PRE
# Line 307  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 383  http://www.ncsa.uiuc.edu/SDG/Software/Mo
383    "ISO 8879:1986//ENTITIES Added Latin 1//EN">    "ISO 8879:1986//ENTITIES Added Latin 1//EN">
384  %ISOlat1;  %ISOlat1;
385    
386  <!ENTITY amp "&#38;"     -- ampersand -->  <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->
387  <!ENTITY gt "&#62;"      -- greater than -->  <!ENTITY amp CDATA "&#38;"     -- ampersand -->
388  <!ENTITY lt "&#60;"      -- less than -->  <!ENTITY gt CDATA "&#62;"      -- greater than -->
389    <!ENTITY lt CDATA "&#60;"      -- less than -->
390    <!ENTITY quot CDATA "&#34;"    -- double quote -->
391    
392    <!-- Processing Entities -->
393    
394  <!ENTITY nbsp "<? nonbreaking-space>">  <!ENTITY nbsp "<? nonbreaking-space>">
395  <!-- @# should add entites for processing instructions  <!-- @# should add entites for processing instructions
396          for line break, centering, etc. -->          for line break, centering, etc. -->
397    
398    
 <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>  
 <!ENTITY % lit-content "RCDATA">  
 <!ELEMENT (%literal) - -  %lit-content>  
   
 <![ %HTML.PLAINTEXT [  
 <!ELEMENT PLAINTEXT - O EMPTY>  
 ]]>  
   
   
399  <!-- Forms  -->  <!-- Forms  -->
400  <![ %HTML.forms [  <![ %HTML.forms [
401    
402  <!ENTITY % HTTP-Method "(GET | POST)">  <!ENTITY % HTTP-Method "(GET | POST)">
403  <!ELEMENT FORM - - (%body-content) -(FORM) +(INPUT|SELECT|TEXTAREA)>  <!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)>
404  <!ATTLIST FORM  <!ATTLIST FORM
405          ACTION %URI #REQUIRED          ACTION %URI #REQUIRED
406          METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --          METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
# Line 344  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 416  http://www.ncsa.uiuc.edu/SDG/Software/Mo
416          NAME CDATA #IMPLIED -- required for all but submit and reset --          NAME CDATA #IMPLIED -- required for all but submit and reset --
417          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
418          SRC %URI #IMPLIED -- for image inputs --          SRC %URI #IMPLIED -- for image inputs --
419          STATE (CHECKED) #IMPLIED          CHECKED (CHECKED) #IMPLIED
420          SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --          SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
421          MAXLENGTH NUMBER #IMPLIED          MAXLENGTH NUMBER #IMPLIED
422          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 426  http://www.ncsa.uiuc.edu/SDG/Software/Mo
426  <!ATTLIST SELECT  <!ATTLIST SELECT
427          NAME CDATA #REQUIRED          NAME CDATA #REQUIRED
428          SIZE NUMBER #IMPLIED          SIZE NUMBER #IMPLIED
429          SELECTIONS (MULTIPLE) #IMPLIED          MULTIPLE (MULTIPLE) #IMPLIED
430          >          >
431    
432  <!ELEMENT OPTION - O (#PCDATA)>  <!ELEMENT OPTION - O (#PCDATA)>
433  <!ATTLIST OPTION  <!ATTLIST OPTION
434          STATE (SELECTED) #IMPLIED          SELECTED (SELECTED) #IMPLIED
435          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
436          >          >
437    
# Line 371  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 443  http://www.ncsa.uiuc.edu/SDG/Software/Mo
443          >          >
444  ]]>  ]]>
445    
446    <!-- Obsolete Elements  -->
447    
448    <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>
449    <!ENTITY % lit-content "RCDATA">
450    <!ELEMENT (%literal) - -  %lit-content>
451    
452    <![ %HTML.PLAINTEXT [
453    <!ELEMENT PLAINTEXT - O EMPTY>
454    ]]>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24