/[pub]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.11 by connolly, Sat Apr 30 03:17:56 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 24  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">  <!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          <!-- @@ headers inside A -->          <!-- @# Are the following required for conformance? -->
56          <!-- @@ nested phrases, fonts -->          <!-- @# nested lists -->
57            <!-- @# IMG -->
58            <!-- @# headers inside A -->
59            <!-- @# nested phrases, fonts -->
60          ]]>          ]]>
61                    
62  <![ %HTML.Obsolete [  <![ %HTML.Obsolete [
# Line 46  Line 66 
66          ]]>          ]]>
67    
68  <![ %HTML.Prescriptive [  <![ %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">          <!ENTITY % HTML.font-phrase "IGNORE">
75          <!ENTITY % HTML.anchorNameCDATA "IGNORE">          <!ENTITY % HTML.anchorNameCDATA "IGNORE">
76          <!ENTITY % HTML.PLAINTEXT "IGNORE">          <!ENTITY % HTML.PLAINTEXT "IGNORE">
77          <!ENTITY HTML.Version          <!ENTITY % HTML.bodyBlockOnly "INCLUDE">
         "-//connolly hal.com//DTD WWW HTML  
                  $Date 1994/04/19 17:24:06 $ Prescriptive//EN">  
78          ]]>          ]]>
79    
80  <!ENTITY HTML.Version  <!ENTITY % HTML.phrase "INCLUDE"
81          "-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN"          -- phrase markup, ala TeXinfo: TT, EM, etc.
82          -- public identifier for "default" version                       --          -->
         -- actually, take the $'s out to get the real public identifer,  --  
         -- since $ is illegal in public identifier. When DTD stabilizes, --  
         -- we'll need to stop using RCS keywords to version the pub id   --  
         >  
   
 <!ENTITY % HTML.GO "IGNORE"  
         -- The GO element used in ORA GNN. What is this??? -->  
   
 <!ENTITY % HTML.aEndOmissable "IGNORE"  
         -- infer </A> tags, as in ORA GNN stuff -->  
83    
84  <!ENTITY % HTML.isindexAtEnd "IGNORE"  <!ENTITY % HTML.bodyBlockOnly "IGNORE"
85          -- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff -->          -- 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 123  Line 137 
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 148  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 194  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 220  http://www.ncsa.uiuc.edu/SDG/Software/Mo
220    
221  <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>  <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>
222  <!ENTITY % obsolete-plaintext "">  <!ENTITY % obsolete-plaintext "">
 <![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]>  
 <!ENTITY % end-isindex "">  
223    
224  <!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex">  <!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 231  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 252  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  <![ %HTML.GO [  <!ENTITY % inline "">
292          <!ELEMENT GO - O EMPTY>  <!ENTITY % pre-inline "">
         <!ENTITY % go-text "| GO">  
         ]]>  
 <!ENTITY % go-text "">  
293    
294  <!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %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 -->
297    
# Line 266  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    
# Line 285  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 | %htext">  <![ %HTML.bodyBlockOnly [
324  <!ELEMENT BODY O O  (%body-content)*>          <!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)*>
330    
 <![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]>  
 <!ENTITY % a-end "-">  
331    
332  <!ELEMENT A     - %a-end (%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 347  http://www.ncsa.uiuc.edu/SDG/Software/Mo Line 384  http://www.ncsa.uiuc.edu/SDG/Software/Mo
384  %ISOlat1;  %ISOlat1;
385    
386  <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->  <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->
387  <!ENTITY amp "&#38;"     -- ampersand -->  <!ENTITY amp CDATA "&#38;"     -- ampersand -->
388  <!ENTITY gt "&#62;"      -- greater than -->  <!ENTITY gt CDATA "&#62;"      -- greater than -->
389  <!ENTITY lt "&#60;"      -- less than -->  <!ENTITY lt CDATA "&#60;"      -- less than -->
390  <!ENTITY quot "&#34;"      -- less than -->  <!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    
# Line 412  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.11  
changed lines
  Added in v.1.15

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24