/[suikacvs]/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.3 by connolly, Mon Apr 4 23:58:38 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    
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 ">
   
 <!ENTITY % headelement  
          "TITLE | NEXTID | ISINDEX" >  
15    
16  <!ENTITY % bodyelement  <!ENTITY % bodyelement
17           "P | %heading |           "P | HR | %heading |
18           %list | DL | HEADERS | 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 Universal Resource Locator,             whose value is a Uniform Resource Locator,
24             as defined in ftp://info.cern.ch/pub/www/doc/url3.txt             as defined. (A URN may also be usable here when defined.)
25          -->          -->
26    
27  <!ENTITY % linkattributes  <!ENTITY % linkattributes
28          "NAME NMTOKEN #IMPLIED          "NAME NMTOKEN #IMPLIED
29          HREF %URL; #IMPLIED          HREF %URL;  #IMPLIED
30          TYPE NAME #IMPLIED -- type of relashionship to referent data:          REL CDATA #IMPLIED -- forward relationship type --
31            REV CDATA #IMPLIED -- reversed relationship type
32                                  to referent data:
33    
34                                  PARENT CHILD, SIBLING, NEXT, TOP,                                  PARENT CHILD, SIBLING, NEXT, TOP,
35                                   DEFINITION, UPDATE, ORIGINAL etc. --                                  DEFINITION, UPDATE, ORIGINAL etc. --
36          URN CDATA #IMPLIED -- universal resource number. unique doc id --  
37            URN CDATA #IMPLIED -- universal resource number --
38    
39          TITLE CDATA #IMPLIED -- advisory only --          TITLE CDATA #IMPLIED -- advisory only --
40          METHODS NAMES #IMPLIED -- supported methods of the object:  
41            METHODS NAMES #IMPLIED -- supported public methods of the object:
42                                          TEXTSEARCH, GET, HEAD, ... --                                          TEXTSEARCH, GET, HEAD, ... --
43    
44          ">          ">
45    
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?)>
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 61  Line 61 
61            -- WWW clients should offer the option to perform a search on            -- WWW clients should offer the option to perform a search on
62               documents containing ISINDEX.               documents containing ISINDEX.
63            -->            -->
   
 <!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.  
           -->  
64    
65  <!ELEMENT LINK - O EMPTY>  <!ELEMENT LINK - O EMPTY>
66  <!ATTLIST LINK  <!ATTLIST LINK
67          %linkattributes>          %linkattributes>
68                    
69  <!ENTITY % inline "EM | TT | STRONG | B | I | U |  <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->
70    <!ATTLIST BASE
71    
72            HREF %URL; #IMPLIED
73    
74            >
75    <!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 % hypertext "#PCDATA | %inline; | A">  <!ENTITY % text "#PCDATA | IMG | %inline; | BR">
83    
84  <!ELEMENT BODY - -  (%bodyelement|%hypertext;)*>  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->
85    
86  <!ELEMENT A     - -  (#PCDATA)>  <!ENTITY % stext                -- as htext but also nested structure --
87                            "P | HR | %list | DL | ADDRESS
88                            | PRE | BLOCKQUOTE
89                            | %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 O O  (%heading | %block)+>
98    
99    
100    <!ELEMENT A     - -  ANY>
101  <!ATTLIST A  <!ATTLIST A
102          %linkattributes;          %linkattributes;
103          >          >
104    
105  <!ELEMENT P     - O EMPTY -- separates paragraphs -->  <!ELEMENT IMG    - O EMPTY --  Embedded image -->
106    <!ATTLIST IMG
107            SRC %URL;  #IMPLIED     -- URL of document to embed --
108            >
109    
110    
111    <!ELEMENT P     - O (%htext)+ -- paragraph -->
112    <!ELEMENT (HR|BR)    - O EMPTY -- horizontal rule -->
113    
114  <!ELEMENT (%heading)    - -  (%hypertext;)+>  <!ELEMENT ( %heading )  - -  (%htext;)+>
115    
116  <!ELEMENT DL    - -  (DT | DD | P | %hypertext;)*>  <!ELEMENT DL    - -  (DT+, DD+)+>
117  <!--    Content should match ((DT,(%hypertext;)+)+,(DD,(%hypertext;)+))  <!--    structured DL's
         But mixed content is messy.  
118    -->    -->
119  <!ATTLIST DL  
120          STYLE NAME #IMPLIED -- COMPACT, etc.--  <!ELEMENT DT    - O (%htext)+>
121    <!ELEMENT DD    - O (%htext|%block)+>
122    
123    <!ELEMENT (%list) - -  (LI)+>
124    
125    <!ATTLIST (%list)
126            COMPACT NAME #IMPLIED -- COMPACT, etc.--
127          >          >
   
 <!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.  
   -->  
128    
129  <!ELEMENT LI    - O EMPTY>  <!ELEMENT LI    - O (%htext|%block)+>
130    
131  <!ELEMENT BLOCKQUOTE - - (%hypertext;|P)+  <!ELEMENT BLOCKQUOTE - - ((%htext|P)+, ADDRESS?)+
132          -- for quoting some other source -->          -- for quoting some other source -->
 <!ATTLIST BLOCKQUOTE  
         SOURCE CDATA #IMPLIED -- URL of source --  
         >  
133    
134  <!ELEMENT ADDRESS - - (%hypertext;|P)+>  <!ELEMENT ADDRESS - - (%htext;)+>
135    
136  <!ELEMENT PRE - - (#PCDATA | A | B | I | U | 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 -->  
147  <!ENTITY Atilde "&#195;" -- capital A, tilde -->  <!ENTITY amp "&#38;"     -- ampersand -->
148  <!ENTITY Auml "&#196;" -- capital A, dieresis or umlaut mark -->  <!ENTITY gt "&#62;"      -- greater than -->
149  <!ENTITY Ccedil "&#199;" -- capital C, cedilla -->  <!ENTITY lt "&#60;"      -- less than -->
150  <!ENTITY ETH "&#208;" -- capital Eth, Icelandic -->  <!ENTITY nbsp "&#32;"    --  @@should be NON_BREAKING space -->
151  <!ENTITY Eacute "&#201;" -- capital E, acute accent -->  <!-- @@ should add entites for processing instructions
152  <!ENTITY Ecirc "&#202;" -- capital E, circumflex accent -->          for line break, centering, etc. -->
 <!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 -->  
153    
154  <!-- deprecated elements -->  <!-- deprecated elements -->
155    
# Line 197  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.4  
changed lines
  Added in v.1.7.2.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24