/[pub]/test/html.dtd
Suika

Diff of /test/html.dtd

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

revision 1.14 by connolly, Fri Jun 3 20:02:52 1994 UTC revision 1.26 by connolly, Fri Jun 2 08:00:02 1995 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 (HTML DTD).                   (HTML DTD)
5    
6          $Id$          $Id$
7    
8          Author: Daniel W. Connolly <connolly@hal.com>          Author: Daniel W. Connolly <connolly@w3.org>
9          See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html          See Also: html.decl, html-1.dtd
10                    http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html            http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html
11  -->  -->
12    
13  <!ENTITY HTML.Version  <!ENTITY % HTML.Version
14          "-//W3O//DTD WWW HTML 2.0//EN"          "-//IETF//DTD HTML 2.0//EN"
         -- public identifier for "current pracitice" version             --  
15    
16          -- Typical usage:          -- Typical usage:
17    
18              <!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN">              <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
19              <html>              <html>
20              ...              ...
21              </html>              </html>
22          --          --
23          >          >
24    
25    
26  <!-- Feature Test Entities -->  <!--============ Feature Test Entities ========================-->
27    
28  <!-- To use these, write your document like:  <!ENTITY % HTML.Recommended "IGNORE"
29          <!DOCTYPE HTML [          -- Certain features of the language are necessary for
30          <!ENTITY % HTML.Optional "INCLUDE">             compatibility with widespread usage, but they may
31          <!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN">             compromise the structural integrity of a document.
32          %html;             This feature test entity enables a more prescriptive
33          ]>             document type definition that eliminates
34          <TITLE>Here's my doc</TITLE>             those features.
         <p>It uses lots of optional features  
   
  In practice, if you're using sgmls to validate your docs,  
  you can stick the <!DOCTYPE [...]> in a separate file and  
  validate with:  
         sgmls -s doctype.sgml foo.html  
  -->  
   
 <!ENTITY % HTML.Level0  "IGNORE">  
 <!ENTITY % HTML.Obsolete "IGNORE">  
 <!ENTITY % HTML.Prescriptive "IGNORE">  
   
 <![ %HTML.Level0 [  
         <!ENTITY % HTML.linkRelationships "IGNORE">  
         <!ENTITY % HTML.linkMethods "IGNORE">  
         <!ENTITY % HTML.linkRedundantInfo "IGNORE">  
         <!ENTITY % HTML.forms "IGNORE">  
         <!ENTITY % HTML.phrase "IGNORE">  
         <!ENTITY % HTML.NEXTID "IGNORE">  
         <!-- @# Are the following required for conformance? -->  
         <!-- @# nested lists -->  
         <!-- @# IMG -->  
         <!-- @# headers inside A -->  
         <!-- @# nested phrases, fonts -->  
         ]]>  
           
 <![ %HTML.Obsolete [  
         <!ENTITY % HTML.titleCDATA "INCLUDE">  
         <!ENTITY % HTML.litCDATA "INCLUDE">  
         <!ENTITY % HTML.pSeparator "INCLUDE">  
         ]]>  
   
 <![ %HTML.Prescriptive [  
         <!--  
         This feature test entity prescribes that certain  
         idioms detract from the structural integrity of an  
         HTML document, and are therefore disallowed.  
35          -->          -->
         <!ENTITY % HTML.font-phrase "IGNORE">  
         <!ENTITY % HTML.anchorNameCDATA "IGNORE">  
         <!ENTITY % HTML.PLAINTEXT "IGNORE">  
         <!ENTITY % HTML.bodyBlockOnly "INCLUDE">  
         ]]>  
36    
37  <!ENTITY % HTML.phrase "INCLUDE"  <![ %HTML.Recommended [
38          -- phrase markup, ala TeXinfo: TT, EM, etc.          <!ENTITY % HTML.Deprecated "IGNORE">
39          -->  ]]>
40    
41  <!ENTITY % HTML.bodyBlockOnly "IGNORE"  <!ENTITY % HTML.Deprecated "INCLUDE"
42          -- only allow block elements in the BODY element          -- Certain features of the language are necessary for
43          This means all paragraphs need to start with a <P> tag.             compatibility with earlier versions of the specification,
44          -->             but they tend to be used an implemented inconsistently,
45               and their use is deprecated. This feature test entity
46               enables a document type definition that eliminates
47               these features.
48            -->
49    
50    <!ENTITY % HTML.Highlighting "INCLUDE"
51            -- Use this feature test entity to validate that a
52               document uses no highlighting tags, which may be
53               ignored on minimal implementations.
54            -->
55    
56    <!ENTITY % HTML.Forms "INCLUDE"
57            -- Use this feature test entity to validate that a document
58               contains no forms, which may not be supported in minimal
59               implementations
60            -->
61    
62  <!ENTITY % HTML.pSeparator "IGNORE"  <!--============== Imported Names ==============================-->
         -- use P element as paragraph separator, rather that container.  
         -->  
63    
64  <!ENTITY % HTML.linkRelationships "INCLUDE"  <!ENTITY % Content-Type "CDATA"
65          -- Adding markup to links to show the relationship between          -- meaning an internet media type
66          ends of a link             (aka MIME content type, as per RFC1521)
67          see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html          -->
         -->  
68    
69  <!ENTITY % HTML.linkMethods "INCLUDE"  <!ENTITY % HTTP-Method "GET | POST"
70          -- Adding markup to links to show the methods supported          -- as per HTTP specification, in progress
71          by the referent object          -->
         see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html  
         -->  
72    
73  <!ENTITY % HTML.linkRedundantInfo "INCLUDE"  <!ENTITY % URI "CDATA"
74          -- Adding markup to links to give redundant information          -- The term URI means a CDATA attribute
75          like URN, content type, title...             whose value is a Uniform Resource Identifier,
76          -->             as defined by
77            "Universal Resource Identifiers" by Tim Berners-Lee
78            aka RFC 1630
79    
80  <!ENTITY % HTML.anchorNameCDATA "INCLUDE"          Note that CDATA attributes are limited by the LITLEN
81          -- Anchor names should be distinct. SGML parser can validate          capacity (1024 in the current version of html.decl),
82          this if the NAME attribute of the A element is declared as ID.          so that URIs in HTML have a bounded length.
         But that restricts the syntax of an anchor name to an SGML name,  
         i.e. a letter followed by letters, numbers, periods and dashes,  
         up to NAMELEN (34) characters long.  
         -->  
83    
84  <!ENTITY % HTML.PLAINTEXT "INCLUDE"          -->
         -- Support for the <PLAINTEXT> tag as a sign of the  
         end of th HTML data stream and the beginning of a stream  
         of text/plain data  
         -->  
85    
 <!ENTITY % HTML.titleCDATA "IGNORE"  
         -- Is the TITLE element #PCDATA, RCDATA, or CDATA content?  
         On Mosaic, it's #PCDATA, but in the linemode browser,  
         it's more like CDATA, but not quite.  
         -->  
86    
87  <!ENTITY % HTML.NEXTID "INCLUDE"  <!--========= DTD "Macros" =====================-->
         -- Used by the NeXT implementation to keep track of the  
         next anchor id to use  
         -->  
88    
89  <!ENTITY % HTML.font-phrase "INCLUDE"  <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
         -- allow B, I, TT, U outside PRE,  
         CITE, VAR, etc. inside PRE  
         -->  
90    
91  <!ENTITY % HTML.KEY "IGNORE"  <!ENTITY % list " UL | OL | DIR | MENU " >
         -- There was once a KEY element, for keyboard keys, menu items,  
         buttons, etc. but it's not supported or widely documented  
         -->  
92    
 <!ENTITY % HTML.U "IGNORE"  
         -- There was also a U element, but since it clashes with  
         the common pracitce of underlining hypertext links, it is  
         not widely supported  
         -->  
93    
94  <!ENTITY % HTML.litCDATA "IGNORE"  <!--======= Character mnemonic entities =================-->
         -- treat XMP, LISTING as CDATA, as per linemodeWWW  
         -->  
95    
96  <!ENTITY % HTML.forms "INCLUDE"  <!ENTITY % ISOlat1 PUBLIC
97          -- Support for forms as per    "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
98  http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html  %ISOlat1;
         -->  
99    
100  <!-- DTD definitions -->  <!ENTITY amp CDATA "&#38;"     -- ampersand          -->
101    <!ENTITY gt CDATA "&#62;"      -- greater than       -->
102    <!ENTITY lt CDATA "&#60;"      -- less than          -->
103    <!ENTITY quot CDATA "&#34;"    -- double quote       -->
104    
105    
106    <!--========= SGML Document Access (SDA) Parameter Entities =====-->
107    
108    <!-- HTML 2.0 contains SGML Document Access (SDA) fixed attributes
109    in support of easy transformation to the International Committee
110    for Accessible Document Design (ICADD) DTD
111             "-//EC-USA-CDA/ICADD//DTD ICADD22//EN".
112    ICADD applications are designed to support usable access to
113    structured information by print-impaired individuals through
114    Braille, large print and voice synthesis.  For more information on
115    SDA & ICADD:  
116            - ISO 12083:1993, Annex A.8, Facilities for Braille,
117              large print and computer voice
118            - ICADD ListServ
119              <ICADD%ASUACAD.BITNET@ARIZVM1.ccit.arizona.edu>
120            - Usenet news group bit.listserv.easi
121            - Recording for the Blind, +1 800 221 4792
122    -->
123    
124  <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >  <!ENTITY % SDAFORM  "SDAFORM  CDATA  #FIXED"
125  <!ENTITY % list " UL | OL | DIR | MENU ">            -- one to one mapping        -->
126  <!ENTITY % literal " XMP | LISTING ">  <!ENTITY % SDARULE  "SDARULE  CDATA  #FIXED"
127              -- context-sensitive mapping -->
128    <!ENTITY % SDAPREF  "SDAPREF  CDATA  #FIXED"
129              -- generated text prefix     -->
130    <!ENTITY % SDASUFF  "SDASUFF  CDATA  #FIXED"
131              -- generated text suffix     -->
132    <!ENTITY % SDASUSP  "SDASUSP  NAME   #FIXED"
133              -- suspend transform process -->
134    
 <!ENTITY % URI "CDATA"  
         -- The term URI means a CDATA attribute  
            whose value is a Uniform Resource Identifier,  
            as defined by  
         "Universal Resource Identifiers" by Tim Berners-Lee  
         aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html  
135    
136          Note that CDATA attributes are limited by the LITLEN  <!--========== Text Markup =====================-->
         capacity (1024 in the current version of html.decl),  
         so that URIs in HTML have a bounded length.  
137    
138          -->  <![ %HTML.Highlighting [
139    
140  <!ENTITY % Content-Type "CDATA"  <!ENTITY % font " TT | B | I ">
         -- meaning a MIME content type, as per RFC1521  
         -->  
141    
142  <![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]>  <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE ">
 <!ENTITY % anchor-name "ID">  
143    
144  <![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs "  <!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
         REL CDATA #IMPLIED -- forward relationship type --  
         REV CDATA #IMPLIED -- reversed relationship type  
                               to referent data:  
   
                                 PARENT CHILD, SIBLING, NEXT, TOP,  
                                 DEFINITION, UPDATE, ORIGINAL etc. --  
         "> ]]>  
 <!ENTITY % linkRelAttrs "">  
   
 <![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs "  
         URN CDATA #IMPLIED -- universal resource number --  
   
         TITLE CDATA #IMPLIED -- advisory only --  
         "> ]]>  
 <!ENTITY % linkRedundantAttrs "">  
   
 <![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs "  
         METHODS NAMES #IMPLIED -- supported public methods of the object:  
                                         TEXTSEARCH, GET, HEAD, ... --  
         "> ]]>  
 <!ENTITY % linkMethodAttrs "">  
   
 <!ENTITY % linkattributes  
         "NAME %anchor-name #IMPLIED  
         HREF %URI;  #IMPLIED  
         %linkRelAttrs;  
         %linkRedundantAttrs;  
         %linkMethodAttrs;  
         ">  
145    
146    <!ELEMENT (%font;|%phrase) - - (%text)*>
147    <!ATTLIST ( TT | CODE | SAMP | KBD | VAR )
148            %SDAFORM; "Lit"
149            >
150    <!ATTLIST ( B | STRONG )
151            %SDAFORM; "B"
152            >
153    <!ATTLIST ( I | EM | CITE )
154            %SDAFORM; "It"
155            >
156    
157  <!-- Document Element -->  <!-- <TT>       Typewriter text                         -->
158    <!-- <B>        Bold text                               -->
159    <!-- <I>        Italic text                             -->
160    
161    <!-- <EM>       Emphasized phrase                       -->
162    <!-- <STRONG>   Strong emphais                          -->
163    <!-- <CODE>     Source code phrase                      -->
164    <!-- <SAMP>     Sample text or characters               -->
165    <!-- <KBD>      Keyboard phrase, e.g. user input        -->
166    <!-- <VAR>      Variable phrase or substituable         -->
167    <!-- <CITE>     Name or title of cited work             -->
168    
169    <!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase">
170    
171  <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>  ]]>
 <!ENTITY % obsolete-plaintext "">  
172    
173  <!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;">  <!ENTITY % text "#PCDATA | A | IMG | BR">
 <!ELEMENT HTML O O  (%html-content)>  
174    
175  <![ %HTML.NEXTID [  <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE?  <!ELEMENT BR    - O EMPTY>
176                          & NEXTID?"> ]]>  <!ATTLIST BR
177  <!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?">          %SDAPREF; "&#RE;"
178  <!ELEMENT HEAD O O  (%head-content)>          >
   
 <![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]>  
 <!ENTITY % title-content "(#PCDATA)">  
 <!ELEMENT TITLE - -  %title-content  
           -- The TITLE element is not considered part of the flow of text.  
              It should be displayed, for example as the page header or  
              window title.  
           -->  
   
 <!ELEMENT ISINDEX - O EMPTY  
           -- WWW clients should offer the option to perform a search on  
              documents containing ISINDEX.  
           -->  
179    
180  <!ELEMENT NEXTID - O EMPTY>  <!-- <BR>       Line break      -->
181  <!ATTLIST NEXTID N %anchor-name #REQUIRED  
182            -- The number should be a name suitable for use  
183               for the ID of a new element. When used, the value  <!--========= Link Markup ======================-->
184               has its numeric part incremented. EG Z67 becomes Z68  
185            -->  <![ %HTML.Recommended [
186  <!ELEMENT LINK - O EMPTY>          <!ENTITY % linkName "ID">
187  <!ATTLIST LINK  ]]>
188          %linkattributes>  
189            <!ENTITY % linkName "CDATA">
190  <!ELEMENT BASE - O EMPTY    -- Reference context for URIs -->  
191  <!ATTLIST BASE  <!ENTITY % linkType "NAME"
192            -- a list of these will be specified at a later date -->
193    
194    <!ENTITY % linkExtraAttributes
195            "REL %linkType #IMPLIED
196            REV %linkType #IMPLIED
197            URN CDATA #IMPLIED
198            TITLE CDATA #IMPLIED
199            METHODS NAMES #IMPLIED
200            ">
201    
202          HREF %URI; #REQUIRED  <![ %HTML.Recommended [
203            <!ENTITY % A.content   "(%text)*"
204            -- <H1><a name="xxx">Heading</a></H1>
205                    is preferred to
206               <a name="xxx"><H1>Heading</H1></a>
207            -->
208    ]]>
209    
210    <!ENTITY % A.content   "(%heading|%text)*">
211    
212    <!ELEMENT A     - - %A.content -(A)>
213    <!ATTLIST A
214            HREF %URI #IMPLIED
215            NAME %linkName #IMPLIED
216            %linkExtraAttributes;
217            %SDAPREF; "<Anchor: #AttList>"
218          >          >
219    <!-- <A>                Anchor; source/destination of link      -->
220    <!-- <A NAME="...">     Name of this anchor                     -->
221    <!-- <A HREF="...">     Address of link destination             -->
222    <!-- <A URN="...">      Permanent address of destination        -->
223    <!-- <A REL=...>        Relationship to destination             -->
224    <!-- <A REV=...>        Relationship of destination to this     -->
225    <!-- <A TITLE="...">    Title of destination (advisory)         -->
226    <!-- <A METHODS="...">  Operations on destination (advisory)    -->
227    
 <![ %HTML.KEY [  
         <!ENTITY % key-emph "| KEY">  
         ]]>  
 <!ENTITY % key-emph "">  
228    
229  <![ %HTML.U [  <!--========== Images ==========================-->
         <!ENTITY % u-font "| U">  
         ]]>  
 <!ENTITY % u-font "">  
230    
231  <![ %HTML.phrase [  <!ELEMENT IMG    - O EMPTY>
232  <!ENTITY % font "TT | B | I %u-font">  <!ATTLIST IMG
233  <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE          SRC %URI;  #REQUIRED
234           | STRIKE %key-emph">          ALT CDATA #IMPLIED
235            ALIGN (top|middle|bottom) #IMPLIED
236            ISMAP (ISMAP) #IMPLIED
237            %SDAPREF; "<Fig><?SDATrans Img: #AttList>#AttVal(Alt)</Fig>"
238            >
239    
240    <!-- <IMG>              Image; icon, glyph or illustration      -->
241    <!-- <IMG SRC="...">    Address of image object                 -->
242    <!-- <IMG ALT="...">    Textual alternative                     -->
243    <!-- <IMG ALIGN=...>    Position relative to text               -->
244    <!-- <IMG ISMAP>        Each pixel can be a link                -->
245    
246    <!--========== Paragraphs=======================-->
247    
248    <!ELEMENT P     - O (%text)*>
249    <!ATTLIST P
250            %SDAFORM; "Para"
251            >
252    
253  <![ %HTML.font-phrase [  <!-- <P>        Paragraph       -->
         <!ENTITY % obsolete-font "| %font">  
         <!ENTITY % obsolete-phrase "| %phrase">  
         ]]>  
 <!ENTITY % obsolete-font "">  
 <!ENTITY % obsolete-phrase "">  
 <![ %HTML.pSeparator [  
         <!ENTITY % obsolete-p "| P">  
         ]]>  
 <!ENTITY % obsolete-p "">  
254    
 <!ENTITY % inline "%phrase %obsolete-font">  
 <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">  
 ]]>  
255    
256  <!ENTITY % inline "">  <!--========== Headings, Titles, Sections ===============-->
 <!ENTITY % pre-inline "">  
257    
258  <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">  <!ELEMENT HR    - O EMPTY>
259    <!ATTLIST HR
260            %SDAPREF; "&#RE;&#RE;"
261            >
262    
263  <!ENTITY % htext "A | %text"    -- Plus links, no structure -->  <!-- <HR>       Horizontal rule -->
264    
265  <![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]>  <!ELEMENT ( %heading )  - -  (%text;)*>
266  <!ENTITY % font-content "#PCDATA">  <!ATTLIST H1
267  <!ELEMENT (%font;) - - (%font-content;)>          %SDAFORM; "H1"
268            >
269    <!ATTLIST H2
270            %SDAFORM; "H2"
271            >
272    <!ATTLIST H3
273            %SDAFORM; "H3"
274            >
275    <!ATTLIST H4
276            %SDAFORM; "H4"
277            >
278    <!ATTLIST H5
279            %SDAFORM; "H5"
280            >
281    <!ATTLIST H6
282            %SDAFORM; "H6"
283            >
284    
285  <![ %HTML.phrase [  <!-- <H1>       Heading, level 1 -->
286  <!ELEMENT (%phrase;) - - (%htext)+>  <!-- <H2>       Heading, level 2 -->
287  ]]>  <!-- <H3>       Heading, level 3 -->
288    <!-- <H4>       Heading, level 4 -->
289    <!-- <H5>       Heading, level 5 -->
290    <!-- <H6>       Heading, level 6 -->
291    
 <!ENTITY % pre "PRE | XMP | LISTING">  
292    
293  <![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]>  <!--========== Text Flows ======================-->
 <!ENTITY % block-form "">  
294    
295  <![ %HTML.pSeparator [  <![ %HTML.Forms [
296          <!ENTITY % obsolete-htext "| %htext">          <!ENTITY % block.forms "BLOCKQUOTE | FORM | ISINDEX">
297          <!ENTITY % block-p "">  ]]>
         ]]>  
 <!ENTITY % obsolete-htext "| A">  
 <!ENTITY % block-p "| P ">  
298    
299  <!ENTITY % block "HR | %list | DL  <!ENTITY % block.forms "BLOCKQUOTE">
                 | %pre | BLOCKQUOTE | ADDRESS  
                 %block-form %block-p">  
300    
301    <![ %HTML.Deprecated [
302            <!ENTITY % preformatted "PRE | XMP | LISTING">
303    ]]>
304    
305  <![ %HTML.bodyBlockOnly [  <!ENTITY % preformatted "PRE">
         <!ENTITY % current-htext "">  
         ]]>  
 <!ENTITY % current-htext "| %htext">  
306    
307  <!ENTITY % body-content "%heading | %block %current-htext">  <!ENTITY % block "P | %list | DL
308  <!ELEMENT BODY O O  (%body-content)*>          | %preformatted
309            | %block.forms">
310    
311    <!ENTITY % flow "(%text|%block)*">
312    
313  <!ELEMENT A     - - (%heading|%block|%text)+ -(A)  <!ENTITY % pre.content "#PCDATA | A | HR | BR">
314          -- @# Technically, this allows silliness like:  <!ELEMENT PRE - - (%pre.content)*>
315                  <H2><A>xyz<H1>h1</H1></A></H2>  <!ATTLIST PRE
316          The right way to do anchors outside of %htext is more like:          WIDTH NUMBER #implied
317                  <as id=z1><H2>lkjlkj</h2><ae start=z1>          %SDAFORM; "Lit"
         -->  
 <!ATTLIST A  
         %linkattributes;  
318          >          >
319    
320  <!ELEMENT IMG    - O EMPTY --  Embedded image -->  <!-- <PRE>              Preformatted text               -->
321  <!ATTLIST IMG  <!-- <PRE WIDTH=...>    Maximum characters per line     -->
322          SRC %URI;  #IMPLIED     -- URI of document to embed --  
323          ALT CDATA #IMPLIED  <![ %HTML.Deprecated [
324          ALIGN (top|middle|bottom) #IMPLIED  
325          ISMAP (ISMAP) #IMPLIED  <!ENTITY % literal "CDATA"
326            -- historical, non-conforming parsing mode where
327               the only markup signal is the end tag
328               in full
329            -->
330    
331    <!ELEMENT (XMP|LISTING) - -  %literal>
332    <!ATTLIST XMP
333            %SDAFORM; "Lit"
334            %SDAPREF; "Example:&#RE;"
335            >
336    <!ATTLIST LISTING
337            %SDAFORM; "Lit"
338            %SDAPREF; "Listing:&#RE;"
339          >          >
340    
341    <!-- <XMP>              Example section         -->
342    <!-- <LISTING>          Computer listing        -->
343    
344    <!ELEMENT PLAINTEXT - O %literal>
345    <!-- <PLAINTEXT>        Plain text passage      -->
346    
347    <!ATTLIST PLAINTEXT
348            %SDAFORM; "Lit"
349            >
350    ]]>
351    
 <![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]>  
 <!ENTITY % p-content "(%htext)+">  
 <!ELEMENT P     - O %p-content>  
 <!ELEMENT HR    - O EMPTY -- horizontal rule -->  
 <!ELEMENT BR    - O EMPTY -- @# BR -> &br; -->  
352    
353  <!ELEMENT ( %heading )  - -  (%htext;)+>  <!--========== Lists ==================-->
354    
355  <!ELEMENT DL    - -  (DT*, DD?)+>  <!ELEMENT DL    - -  (DT | DD)+>
356  <!ATTLIST DL  <!ATTLIST DL
357          COMPACT (COMPACT) #IMPLIED>          COMPACT (COMPACT) #IMPLIED
358            %SDAFORM; "List"
359            %SDAPREF; "Definition List:"
360            >
361    
362  <!ELEMENT DT    - O (%htext)+>  <!ELEMENT DT    - O (%text)*>
363  <!ELEMENT DD    - O (%htext|%block)+>  <!ATTLIST DT
364            %SDAFORM; "Term"
365            >
366    
367  <!ELEMENT (%list) - -  (LI)+>  <!ELEMENT DD    - O %flow>
368    <!ATTLIST DD
369            %SDAFORM; "LItem"
370            >
371    
372  <!ELEMENT LI    - O (%htext|%block)+>  <!-- <DL>               Definition list, or glossary    -->
373    <!-- <DL COMPACT>       Compact style list              -->
374    <!-- <DT>               Term in definition list         -->
375    <!-- <DD>               Definition of term              -->
376    
377    <!ELEMENT (OL|UL) - -  (LI)+>
378    <!ATTLIST OL
379            COMPACT (COMPACT) #IMPLIED
380            %SDAFORM; "List"
381            >
382    <!ATTLIST UL
383            COMPACT (COMPACT) #IMPLIED
384            %SDAFORM; "List"
385            >
386    <!-- <UL>               Unordered list                  -->
387    <!-- <UL COMPACT>       Compact list style              -->
388    <!-- <OL>               Ordered, or numbered list       -->
389    <!-- <OL COMPACT>       Compact list style              -->
390    
 <!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... --  
         -- for quoting some other source -->  
391    
392  <!ELEMENT ADDRESS - - (%htext;|%block)+>  <!ELEMENT (DIR|MENU) - -  (LI)+ -(%block)>
393    <!ATTLIST DIR
394            COMPACT (COMPACT) #IMPLIED
395            %SDAFORM; "List"
396            %SDAPREF; "<LHead>Directory</LHead>"
397            >
398    <!ATTLIST MENU
399            COMPACT (COMPACT) #IMPLIED
400            %SDAFORM; "List"
401            %SDAPREF; "<LHead>Menu</LHead>"
402            >
403    
404  <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>  <!-- <DIR>              Directory list                  -->
405  <!ATTLIST PRE  <!-- <DIR COMPACT>      Compact list style              -->
406          WIDTH NUMBER #implied  <!-- <MENU>             Menu list                       -->
407    <!-- <MENU COMPACT>     Compact list style              -->
408    
409    <!ELEMENT LI    - O %flow>
410    <!ATTLIST LI
411            %SDAFORM; "LItem"
412          >          >
413    
414  <!-- Mnemonic character entities. -->  <!-- <LI>               List item                       -->
415    
416  <!ENTITY % ISOlat1 PUBLIC  <!--========== Document Body ===================-->
417    "ISO 8879:1986//ENTITIES Added Latin 1//EN">  
418  %ISOlat1;  <![ %HTML.Recommended [
419            <!ENTITY % body.content "(%heading|%block|HR|ADDRESS|IMG)*"
420            -- <h1>Heading</h1>
421               <p>Text ...
422                    is preferred to
423               <h1>Heading</h1>
424               Text ...
425            -->
426    ]]>
427    
428    <!ENTITY % body.content "(%heading | %text | %block |
429                                     HR | ADDRESS)*">
430    
431    <!ELEMENT BODY O O  %body.content>
432    
433    <!-- <BODY>     Document body   -->
434    
435    <!ELEMENT BLOCKQUOTE - - %body.content>
436    <!ATTLIST BLOCKQUOTE
437            %SDAFORM; "BQ"
438            >
439    
440  <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->  <!-- <BLOCKQUOTE>       Quoted passage  -->
 <!ENTITY amp CDATA "&#38;"     -- ampersand -->  
 <!ENTITY gt CDATA "&#62;"      -- greater than -->  
 <!ENTITY lt CDATA "&#60;"      -- less than -->  
 <!ENTITY quot CDATA "&#34;"    -- double quote -->  
441    
442  <!-- Processing Entities -->  <!ELEMENT ADDRESS - - (%text|P)*>
443    <!ATTLIST  ADDRESS
444            %SDAFORM; "Lit"
445            %SDAPREF; "Address:&#RE;"
446            >
447    
448    <!-- <ADDRESS>  Address, signature, or byline   -->
449    
 <!ENTITY nbsp "<? nonbreaking-space>">  
 <!-- @# should add entites for processing instructions  
         for line break, centering, etc. -->  
450    
451    <!--======= Forms ====================-->
452    
453  <!-- Forms  -->  <![ %HTML.Forms [
 <![ %HTML.forms [  
454    
455  <!ENTITY % HTTP-Method "(GET | POST)">  <!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)>
 <!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)>  
456  <!ATTLIST FORM  <!ATTLIST FORM
457          ACTION %URI #REQUIRED          ACTION %URI #IMPLIED
458          METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --          METHOD (%HTTP-Method) GET
459          ENCTYPE %Content-Type; #IMPLIED          ENCTYPE %Content-Type; "application/x-www-form-urlencoded"
460          >          %SDAPREF; "<Para>Form:</Para>"
461            %SDASUFF; "<Para>Form End.</Para>"
462            >
463    
464    <!-- <FORM>                     Fill-out or data-entry form     -->
465    <!-- <FORM ACTION="...">        Address for completed form      -->
466    <!-- <FORM METHOD=...>          Method of submitting form       -->
467    <!-- <FORM ENCTYPE="...">       Representation of form data     -->
468    
469  <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |  <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
470                          RADIO | SUBMIT | RESET |                          RADIO | SUBMIT | RESET |
471                          IMAGE | HIDDEN )">                          IMAGE | HIDDEN )">
472  <!ELEMENT INPUT - O EMPTY>  <!ELEMENT INPUT - O EMPTY>
473  <!ATTLIST INPUT  <!ATTLIST INPUT
474          TYPE %InputType #IMPLIED -- @# defaults to TEXT?? --          TYPE %InputType TEXT
475          NAME CDATA #IMPLIED -- required for all but submit and reset --          NAME CDATA #IMPLIED
476          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
477          SRC %URI #IMPLIED -- for image inputs --          SRC %URI #IMPLIED
478          CHECKED (CHECKED) #IMPLIED          CHECKED (CHECKED) #IMPLIED
479          SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --          SIZE CDATA #IMPLIED
480          MAXLENGTH NUMBER #IMPLIED          MAXLENGTH NUMBER #IMPLIED
481          ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--          ALIGN (top|middle|bottom) #IMPLIED
482            %SDAPREF; "Input: "
483          >          >
484    
485  <!ELEMENT SELECT - - (OPTION+)>  <!-- <INPUT>                    Form input datum                -->
486    <!-- <INPUT TYPE=...>           Type of input interaction       -->
487    <!-- <INPUT NAME=...>           Name of form datum              -->
488    <!-- <INPUT VALUE="...">        Default/initial/selected value  -->
489    <!-- <INPUT SRC="...">          Address of image                -->
490    <!-- <INPUT CHECKED>            Initial state is "on"           -->
491    <!-- <INPUT SIZE=...>           Field size hint                 -->
492    <!-- <INPUT MAXLENGTH=...>      Data length maximum             -->
493    <!-- <INPUT ALIGN=...>          Image alignment                 -->
494    
495    <!ELEMENT SELECT - - (OPTION+) -(INPUT|SELECT|TEXTAREA)>
496  <!ATTLIST SELECT  <!ATTLIST SELECT
497          NAME CDATA #REQUIRED          NAME CDATA #REQUIRED
498          SIZE NUMBER #IMPLIED          SIZE NUMBER #IMPLIED
499          MULTIPLE (MULTIPLE) #IMPLIED          MULTIPLE (MULTIPLE) #IMPLIED
500            %SDAFORM; "List"
501            %SDAPREF;
502            "<LHead>Select #AttVal(Multiple)</LHead>"
503          >          >
504    
505  <!ELEMENT OPTION - O (#PCDATA)>  <!-- <SELECT>                   Selection of option(s)          -->
506    <!-- <SELECT NAME=...>          Name of form datum              -->
507    <!-- <SELECT SIZE=...>          Options displayed at a time     -->
508    <!-- <SELECT MULTIPLE>          Multiple selections allowed     -->
509    
510    <!ELEMENT OPTION - O (#PCDATA)*>
511  <!ATTLIST OPTION  <!ATTLIST OPTION
512          SELECTED (SELECTED) #IMPLIED          SELECTED (SELECTED) #IMPLIED
513          VALUE CDATA #IMPLIED          VALUE CDATA #IMPLIED
514            %SDAFORM; "LItem"
515            %SDAPREF;
516            "Option: #AttVal(Value) #AttVal(Selected)"
517          >          >
518    
519  <!ELEMENT TEXTAREA - - (#PCDATA)>  <!-- <OPTION>                   A selection option              -->
520    <!-- <OPTION SELECTED>          Initial state                   -->
521    <!-- <OPTION VALUE="...">       Form datum value for this option-->
522    
523    <!ELEMENT TEXTAREA - - (#PCDATA)* -(INPUT|SELECT|TEXTAREA)>
524  <!ATTLIST TEXTAREA  <!ATTLIST TEXTAREA
525          NAME CDATA #REQUIRED          NAME CDATA #REQUIRED
526          ROWS NUMBER #REQUIRED -- @#implied? --          ROWS NUMBER #REQUIRED
527          COLS NUMBER #REQUIRED          COLS NUMBER #REQUIRED
528          >          %SDAFORM; "Para"
529            %SDAPREF; "Input Text -- #AttVal(Name): "
530            >
531    
532    <!-- <TEXTAREA>                 An area for text input          -->
533    <!-- <TEXTAREA NAME=...>        Name of form datum              -->
534    <!-- <TEXTAREA ROWS=...>        Height of area                  -->
535    <!-- <TEXTAREA COLS=...>        Width of area                   -->
536    
537  ]]>  ]]>
538    
 <!-- Obsolete Elements  -->  
539    
540  <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>  <!--======= Document Head ======================-->
541  <!ENTITY % lit-content "RCDATA">  
542  <!ELEMENT (%literal) - -  %lit-content>  <![ %HTML.Recommended [
543            <!ENTITY % head.extra "META* & LINK*">
544    ]]>
545    
546    <!ENTITY % head.extra "NEXTID? & META* & LINK*">
547    
548    <!ENTITY % head.content "TITLE & ISINDEX? & BASE? &
549                             (%head.extra)">
550    
551    <!ELEMENT HEAD O O  (%head.content)>
552    
553  <![ %HTML.PLAINTEXT [  <!-- <HEAD>     Document head   -->
554  <!ELEMENT PLAINTEXT - O EMPTY>  
555    <!ELEMENT TITLE - -  (#PCDATA)*>
556    <!ATTLIST TITLE
557            %SDAFORM; "Ti"    >
558    
559    <!-- <TITLE>    Title of document -->
560    
561    <!ELEMENT LINK - O EMPTY>
562    <!ATTLIST LINK
563            HREF %URI #REQUIRED
564            %linkExtraAttributes;
565            %SDAPREF; "Linked to : #AttVal (TITLE) (URN) (HREF)>"    >
566    
567    <!-- <LINK>             Link from this document                 -->
568    <!-- <LINK HREF="...">  Address of link destination             -->
569    <!-- <LINK URN="...">   Lasting name of destination             -->
570    <!-- <LINK REL=...>     Relationship to destination             -->
571    <!-- <LINK REV=...>     Relationship of destination to this     -->
572    <!-- <LINK TITLE="..."> Title of destination (advisory)         -->
573    <!-- <LINK METHODS="..."> Operations allowed (advisory)         -->
574    
575    <!ELEMENT ISINDEX - O EMPTY>
576    <!ATTLIST ISINDEX
577            %SDAPREF;
578       "<Para>[Document is indexed/searchable.]</Para>">
579    
580    <!-- <ISINDEX>          Document is a searchable index          -->
581    
582    <!ELEMENT BASE - O EMPTY>
583    <!ATTLIST BASE
584            HREF %URI; #REQUIRED     >
585    
586    <!-- <BASE>             Base context document                   -->
587    <!-- <BASE HREF="...">  Address for this document               -->
588    
589    <!ELEMENT NEXTID - O EMPTY>
590    <!ATTLIST NEXTID
591            N %linkName #REQUIRED     >
592    
593    <!-- <NEXTID>           Next ID to use for link name            -->
594    <!-- <NEXTID N=...>     Next ID to use for link name            -->
595    
596    <!ELEMENT META - O EMPTY>
597    <!ATTLIST META
598            HTTP-EQUIV  NAME    #IMPLIED
599            NAME        NAME    #IMPLIED
600            CONTENT     CDATA   #REQUIRED    >
601    
602    <!-- <META>                     Generic Metainformation         -->
603    <!-- <META HTTP-EQUIV=...>      HTTP response header name       -->
604    <!-- <META NAME=...>            Metainformation name            -->
605    <!-- <META CONTENT="...">       Associated information          -->
606    
607    <!--======= Document Structure =================-->
608    
609    <![ %HTML.Deprecated [
610            <!ENTITY % html.content "HEAD, BODY, PLAINTEXT?">
611  ]]>  ]]>
612    <!ENTITY % html.content "HEAD, BODY">
613    
614    <!ELEMENT HTML O O  (%html.content)>
615    <!ENTITY % version.attr "VERSION CDATA #FIXED '%HTML.Version;'">
616    
617    <!ATTLIST HTML
618            %version.attr;
619            %SDAFORM; "Book"
620            >
621    
622    <!-- <HTML>                     HTML Document   -->

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24