/[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.7.2.3 by connolly, Mon Apr 4 23:58:38 1994 UTC
# Line 3  Line 3 
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 application (HTML DTD).
5    
6          $Id$          $Id$
7  -->  -->
8    
9    
10  <!-- DTD definitions -->  <!-- DTD definitions -->
11    
12  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
13  <!ENTITY % list " UL | OL | DIR | MENU ">  <!ENTITY % list " UL | OL | DIR | MENU ">
14  <!ENTITY % literal " XMP | LISTING ">  <!ENTITY % literal " XMP | LISTING ">
15    
 <!ENTITY % headelement  
          " TITLE | NEXTID |ISINDEX" >  
   
16  <!ENTITY % bodyelement  <!ENTITY % bodyelement
17           "P | HR | %heading |           "P | HR | %heading |
18           %list | DL | ADDRESS | PRE | BLOCKQUOTE           %list | DL | ADDRESS | PRE | BLOCKQUOTE
19          | %literal">          | %literal">
20    
 <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">  
   
21  <!ENTITY % URL "CDATA"  <!ENTITY % URL "CDATA"
22          -- The term URL means a CDATA attribute          -- The term URL means a CDATA attribute
23             whose value is a Uniform Resource Locator,             whose value is a Uniform Resource Locator,
# Line 50  Line 46 
46    
47  <!-- Document Element -->  <!-- Document Element -->
48    
49  <!ELEMENT HTML O O  (( HEAD | BODY | %oldstyle )*, PLAINTEXT?)>  <!ELEMENT HTML O O  (HEAD, BODY)>
50    
51  <!ELEMENT HEAD - -  ( TITLE?  & ISINDEX?  & NEXTID?  & LINK*  <!ELEMENT HEAD O O  ( TITLE?  & ISINDEX?  & NEXTID?  & LINK*
52                                & BASE?)>                                & BASE?)>
53    
54  <!ELEMENT TITLE - -  RCDATA  <!ELEMENT TITLE - -  (#PCDATA)
55            -- The TITLE element is not considered part of the flow of text.            -- The TITLE element is not considered part of the flow of text.
56               It should be displayed, for example as the page header or               It should be displayed, for example as the page header or
57               window title.               window title.
# Line 66  Line 62 
62               documents containing ISINDEX.               documents containing ISINDEX.
63            -->            -->
64    
 <!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  
           -->  
65  <!ELEMENT LINK - O EMPTY>  <!ELEMENT LINK - O EMPTY>
66  <!ATTLIST LINK  <!ATTLIST LINK
67          %linkattributes>          %linkattributes>
# Line 82  Line 72 
72          HREF %URL; #IMPLIED          HREF %URL; #IMPLIED
73    
74          >          >
75  <!ENTITY % inline "EM | TT | STRONG | B | I | U |  <!ENTITY % inline "EM | STRONG |
76                          CODE | SAMP | KBD | KEY | VAR | DFN | CITE "                          CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
77          >          >
78    
79  <!ELEMENT (%inline;) - - (#PCDATA)>  <!ELEMENT (%inline;) - - (#PCDATA | A)+>
80    <!ELEMENT (B | I | U | TT) - - (#PCDATA | A)+>
81    
82  <!ENTITY % text "#PCDATA | IMG | %inline;">  <!ENTITY % text "#PCDATA | IMG | %inline; | BR">
83    
84  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
85    
# Line 97  Line 88 
88                          | PRE | BLOCKQUOTE                          | PRE | BLOCKQUOTE
89                          | %literal | %htext">                          | %literal | %htext">
90    
91    <!ENTITY % block                -- as htext but also nested structure --
92                            "P | HR | %list | DL
93                            | PRE | BLOCKQUOTE | ADDRESS
94                            | %literal">
95    
96    
97  <!ELEMENT BODY - -  (%bodyelement|%htext;)*>  <!ELEMENT BODY O O  (%heading | %block)+>
98    
99    
100  <!ELEMENT A     - -  (%text)>  <!ELEMENT A     - -  ANY>
101  <!ATTLIST A  <!ATTLIST A
102          %linkattributes;          %linkattributes;
103          >          >
# Line 112  Line 108 
108          >          >
109    
110    
111  <!ELEMENT P     - O EMPTY -- separates paragraphs -->  <!ELEMENT P     - O (%htext)+ -- paragraph -->
112  <!ELEMENT HR    - O EMPTY -- horizontal rule -->  <!ELEMENT (HR|BR)    - O EMPTY -- horizontal rule -->
113    
114  <!ELEMENT ( %heading )  - -  (%htext;)+>  <!ELEMENT ( %heading )  - -  (%htext;)+>
115    
116  <!ELEMENT DL    - -  (DT | DD | %stext;)*>  <!ELEMENT DL    - -  (DT+, DD+)+>
117  <!--    Content should match ((DT,(%htext;)+)+,(DD,(%stext;)+))  <!--    structured DL's
         But mixed content is messy.  -Dan Connolly  
118    -->    -->
119    
120  <!ELEMENT DT    - O EMPTY>  <!ELEMENT DT    - O (%htext)+>
121  <!ELEMENT DD    - O EMPTY>  <!ELEMENT DD    - O (%htext|%block)+>
122    
123    <!ELEMENT (%list) - -  (LI)+>
124    
 <!ELEMENT (UL|OL) - -  (%htext;|LI|P)+>  
 <!ELEMENT (DIR|MENU) - -  (%htext;|LI)+>  
 <!--    Content should match ((LI,(%htext;)+)+)  
         But mixed content is messy.  
   -->  
125  <!ATTLIST (%list)  <!ATTLIST (%list)
126          COMPACT NAME #IMPLIED -- COMPACT, etc.--          COMPACT NAME #IMPLIED -- COMPACT, etc.--
127          >          >
128    
129  <!ELEMENT LI    - O EMPTY>  <!ELEMENT LI    - O (%htext|%block)+>
130    
131  <!ELEMENT BLOCKQUOTE - - (%htext;|P)+  <!ELEMENT BLOCKQUOTE - - ((%htext|P)+, ADDRESS?)+
132          -- for quoting some other source -->          -- for quoting some other source -->
133    
134  <!ELEMENT ADDRESS - - (%htext;|P)+>  <!ELEMENT ADDRESS - - (%htext;)+>
135    
136  <!ELEMENT PRE - - (#PCDATA|%inline|A|P)+>  <!ELEMENT PRE - - (#PCDATA | TT | B | I | U | A | P | BR)+>
137  <!ATTLIST PRE  <!ATTLIST PRE
138          WIDTH NUMBER #implied          WIDTH NUMBER #implied
139          >          >
140    
141  <!-- Mnemonic character entities. -->  <!-- Mnemonic character entities. -->
142  <!ENTITY AElig "&#198;"  -- capital AE diphthong (ligature) -->  
143  <!ENTITY Aacute "&#193;" -- capital A, acute accent -->  <!ENTITY % ISOlat1 PUBLIC
144  <!ENTITY Acirc "&#194;"  -- capital A, circumflex accent -->    "ISO 8879:1986//ENTITIES Added Latin 1//EN">
145  <!ENTITY Agrave "&#192;" -- capital A, grave accent -->  %ISOlat1;
146  <!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 -->  
147  <!ENTITY amp "&#38;"     -- ampersand -->  <!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 -->  
148  <!ENTITY gt "&#62;"      -- greater than -->  <!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 -->  
149  <!ENTITY lt "&#60;"      -- less than -->  <!ENTITY lt "&#60;"      -- less than -->
150  <!ENTITY nbsp "&#32;"    --  should be NON_BREAKING space -->  <!ENTITY nbsp "&#32;"    --  @@should be NON_BREAKING space -->
151  <!ENTITY ntilde "&#241;" -- small n, tilde -->  <!-- @@ should add entites for processing instructions
152  <!ENTITY oacute "&#243;" -- small o, acute accent -->          for line break, centering, etc. -->
 <!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 -->  
153    
154  <!-- deprecated elements -->  <!-- deprecated elements -->
155    
# Line 220  Line 157 
157    
158  <!ELEMENT PLAINTEXT - O EMPTY>  <!ELEMENT PLAINTEXT - O EMPTY>
159    
 <!-- Local Variables: -->  
 <!-- mode: sgml -->  
 <!-- compile-command: "sgmls -s -p " -->  
 <!-- end: -->  

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24