/[pub]/test/html.dtd
Suika

Contents of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations) (download)
Fri Jun 3 20:02:52 1994 UTC (29 years, 11 months ago) by connolly
Branch: MAIN
Changes since 1.13: +24 -15 lines
* Changed public identifier to W30

* Started messing with Level0 feature test entities.

1 connolly 1.7 <!-- html.dtd
2    
3 connolly 1.6 Document Type Definition for the HyperText Markup Language
4 connolly 1.13 as used by the World Wide Web (HTML DTD).
5 connolly 1.5
6 connolly 1.14 $Id: html.dtd,v 1.13 1994/05/18 17:23:29 connolly Exp $
7 connolly 1.11
8 connolly 1.13 Author: Daniel W. Connolly <connolly@hal.com>
9     See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html
10 connolly 1.14 http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html
11 connolly 1.2 -->
12    
13 connolly 1.13 <!ENTITY HTML.Version
14 connolly 1.14 "-//W3O//DTD WWW HTML 2.0//EN"
15 connolly 1.13 -- public identifier for "current pracitice" version --
16    
17     -- Typical usage:
18    
19 connolly 1.14 <!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN">
20 connolly 1.13 <html>
21     ...
22     </html>
23     --
24     >
25    
26    
27 connolly 1.8 <!-- Feature Test Entities -->
28    
29     <!-- To use these, write your document like:
30     <!DOCTYPE HTML [
31     <!ENTITY % HTML.Optional "INCLUDE">
32     <!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN">
33     %html;
34     ]>
35     <TITLE>Here's my doc</TITLE>
36     <p>It uses lots of optional features
37    
38     In practice, if you're using sgmls to validate your docs,
39     you can stick the <!DOCTYPE [...]> in a separate file and
40     validate with:
41     sgmls -s doctype.sgml foo.html
42     -->
43    
44 connolly 1.14 <!ENTITY % HTML.Level0 "IGNORE">
45 connolly 1.8 <!ENTITY % HTML.Obsolete "IGNORE">
46 connolly 1.11 <!ENTITY % HTML.Prescriptive "IGNORE">
47 connolly 1.8
48 connolly 1.14 <![ %HTML.Level0 [
49 connolly 1.8 <!ENTITY % HTML.linkRelationships "IGNORE">
50     <!ENTITY % HTML.linkMethods "IGNORE">
51     <!ENTITY % HTML.linkRedundantInfo "IGNORE">
52     <!ENTITY % HTML.forms "IGNORE">
53 connolly 1.14 <!ENTITY % HTML.phrase "IGNORE">
54     <!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 connolly 1.8 ]]>
61    
62     <![ %HTML.Obsolete [
63     <!ENTITY % HTML.titleCDATA "INCLUDE">
64     <!ENTITY % HTML.litCDATA "INCLUDE">
65     <!ENTITY % HTML.pSeparator "INCLUDE">
66     ]]>
67    
68 connolly 1.11 <![ %HTML.Prescriptive [
69 connolly 1.12 <!--
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 connolly 1.11 <!ENTITY % HTML.font-phrase "IGNORE">
75     <!ENTITY % HTML.anchorNameCDATA "IGNORE">
76     <!ENTITY % HTML.PLAINTEXT "IGNORE">
77 connolly 1.12 <!ENTITY % HTML.bodyBlockOnly "INCLUDE">
78 connolly 1.11 ]]>
79    
80 connolly 1.14 <!ENTITY % HTML.phrase "INCLUDE"
81     -- phrase markup, ala TeXinfo: TT, EM, etc.
82     -->
83    
84 connolly 1.12 <!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 connolly 1.9
89 connolly 1.8 <!ENTITY % HTML.pSeparator "IGNORE"
90     -- use P element as paragraph separator, rather that container.
91     -->
92    
93     <!ENTITY % HTML.linkRelationships "INCLUDE"
94     -- Adding markup to links to show the relationship between
95     ends of a link
96     see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html
97     -->
98    
99     <!ENTITY % HTML.linkMethods "INCLUDE"
100     -- Adding markup to links to show the methods supported
101     by the referent object
102     see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html
103     -->
104    
105     <!ENTITY % HTML.linkRedundantInfo "INCLUDE"
106     -- Adding markup to links to give redundant information
107     like URN, content type, title...
108     -->
109    
110 connolly 1.11 <!ENTITY % HTML.anchorNameCDATA "INCLUDE"
111 connolly 1.8 -- Anchor names should be distinct. SGML parser can validate
112     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,
114     i.e. a letter followed by letters, numbers, periods and dashes,
115     up to NAMELEN (34) characters long.
116     -->
117    
118 connolly 1.11 <!ENTITY % HTML.PLAINTEXT "INCLUDE"
119 connolly 1.8 -- Support for the <PLAINTEXT> tag as a sign of the
120     end of th HTML data stream and the beginning of a stream
121     of text/plain data
122     -->
123    
124     <!ENTITY % HTML.titleCDATA "IGNORE"
125     -- Is the TITLE element #PCDATA, RCDATA, or CDATA content?
126     On Mosaic, it's #PCDATA, but in the linemode browser,
127     it's more like CDATA, but not quite.
128     -->
129    
130 connolly 1.9 <!ENTITY % HTML.NEXTID "INCLUDE"
131 connolly 1.8 -- Used by the NeXT implementation to keep track of the
132     next anchor id to use
133     -->
134    
135 connolly 1.11 <!ENTITY % HTML.font-phrase "INCLUDE"
136 connolly 1.8 -- allow B, I, TT, U outside PRE,
137     CITE, VAR, etc. inside PRE
138     -->
139    
140 connolly 1.12 <!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 connolly 1.8 <!ENTITY % HTML.litCDATA "IGNORE"
152     -- treat XMP, LISTING as CDATA, as per linemodeWWW
153     -->
154    
155     <!ENTITY % HTML.forms "INCLUDE"
156     -- Support for forms as per
157     http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html
158     -->
159    
160 connolly 1.3 <!-- DTD definitions -->
161    
162 connolly 1.2 <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
163 connolly 1.6 <!ENTITY % list " UL | OL | DIR | MENU ">
164     <!ENTITY % literal " XMP | LISTING ">
165 connolly 1.2
166 connolly 1.8 <!ENTITY % URI "CDATA"
167     -- The term URI means a CDATA attribute
168     whose value is a Uniform Resource Identifier,
169     as defined by
170     "Universal Resource Identifiers" by Tim Berners-Lee
171     aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html
172    
173     Note that CDATA attributes are limited by the LITLEN
174     capacity (1024 in the current version of html.decl),
175     so that URIs in HTML have a bounded length.
176 connolly 1.12
177 connolly 1.8 -->
178    
179     <!ENTITY % Content-Type "CDATA"
180 connolly 1.12 -- meaning a MIME content type, as per RFC1521
181 connolly 1.8 -->
182 connolly 1.2
183 connolly 1.8 <![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]>
184     <!ENTITY % anchor-name "ID">
185 connolly 1.6
186 connolly 1.8 <![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs "
187 connolly 1.6 REL CDATA #IMPLIED -- forward relationship type --
188     REV CDATA #IMPLIED -- reversed relationship type
189     to referent data:
190    
191     PARENT CHILD, SIBLING, NEXT, TOP,
192     DEFINITION, UPDATE, ORIGINAL etc. --
193 connolly 1.8 "> ]]>
194     <!ENTITY % linkRelAttrs "">
195 connolly 1.6
196 connolly 1.8 <![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs "
197 connolly 1.6 URN CDATA #IMPLIED -- universal resource number --
198    
199     TITLE CDATA #IMPLIED -- advisory only --
200 connolly 1.8 "> ]]>
201     <!ENTITY % linkRedundantAttrs "">
202 connolly 1.5
203 connolly 1.8 <![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs "
204 connolly 1.6 METHODS NAMES #IMPLIED -- supported public methods of the object:
205     TEXTSEARCH, GET, HEAD, ... --
206 connolly 1.8 "> ]]>
207     <!ENTITY % linkMethodAttrs "">
208 connolly 1.3
209 connolly 1.8 <!ENTITY % linkattributes
210     "NAME %anchor-name #IMPLIED
211     HREF %URI; #IMPLIED
212     %linkRelAttrs;
213     %linkRedundantAttrs;
214     %linkMethodAttrs;
215 connolly 1.6 ">
216    
217    
218 connolly 1.4 <!-- Document Element -->
219 connolly 1.2
220    
221 connolly 1.9 <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>
222     <!ENTITY % obsolete-plaintext "">
223    
224 connolly 1.12 <!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;">
225 connolly 1.8 <!ELEMENT HTML O O (%html-content)>
226    
227     <![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE?
228     & NEXTID?"> ]]>
229     <!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?">
230     <!ELEMENT HEAD O O (%head-content)>
231    
232     <![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]>
233     <!ENTITY % title-content "(#PCDATA)">
234     <!ELEMENT TITLE - - %title-content
235 connolly 1.6 -- The TITLE element is not considered part of the flow of text.
236     It should be displayed, for example as the page header or
237     window title.
238     -->
239 connolly 1.2
240     <!ELEMENT ISINDEX - O EMPTY
241 connolly 1.6 -- WWW clients should offer the option to perform a search on
242     documents containing ISINDEX.
243     -->
244    
245 connolly 1.2 <!ELEMENT NEXTID - O EMPTY>
246 connolly 1.8 <!ATTLIST NEXTID N %anchor-name #REQUIRED
247 connolly 1.6 -- The number should be a name suitable for use
248     for the ID of a new element. When used, the value
249     has its numeric part incremented. EG Z67 becomes Z68
250     -->
251     <!ELEMENT LINK - O EMPTY>
252     <!ATTLIST LINK
253     %linkattributes>
254    
255 connolly 1.8 <!ELEMENT BASE - O EMPTY -- Reference context for URIs -->
256 connolly 1.6 <!ATTLIST BASE
257    
258 connolly 1.12 HREF %URI; #REQUIRED
259 connolly 1.6
260     >
261 connolly 1.8
262 connolly 1.12 <![ %HTML.KEY [
263     <!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 connolly 1.14 <![ %HTML.phrase [
273 connolly 1.12 <!ENTITY % font "TT | B | I %u-font">
274     <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE
275     | STRIKE %key-emph">
276 connolly 1.8
277 connolly 1.12
278 connolly 1.8 <![ %HTML.font-phrase [
279     <!ENTITY % obsolete-font "| %font">
280     <!ENTITY % obsolete-phrase "| %phrase">
281     ]]>
282     <!ENTITY % obsolete-font "">
283     <!ENTITY % obsolete-phrase "">
284     <![ %HTML.pSeparator [
285     <!ENTITY % obsolete-p "| P">
286     ]]>
287     <!ENTITY % obsolete-p "">
288 connolly 1.3
289 connolly 1.8 <!ENTITY % inline "%phrase %obsolete-font">
290     <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">
291 connolly 1.14 ]]>
292    
293     <!ENTITY % inline "">
294     <!ENTITY % pre-inline "">
295 connolly 1.3
296 connolly 1.12 <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">
297 connolly 1.6
298     <!ENTITY % htext "A | %text" -- Plus links, no structure -->
299 connolly 1.4
300 connolly 1.8 <![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]>
301     <!ENTITY % font-content "#PCDATA">
302     <!ELEMENT (%font;) - - (%font-content;)>
303    
304 connolly 1.14 <![ %HTML.phrase [
305 connolly 1.8 <!ELEMENT (%phrase;) - - (%htext)+>
306 connolly 1.14 ]]>
307 connolly 1.5
308 connolly 1.8 <!ENTITY % pre "PRE | XMP | LISTING">
309 connolly 1.6
310 connolly 1.9 <![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]>
311 connolly 1.8 <!ENTITY % block-form "">
312 connolly 1.6
313 connolly 1.8 <![ %HTML.pSeparator [
314     <!ENTITY % obsolete-htext "| %htext">
315     <!ENTITY % block-p "">
316     ]]>
317     <!ENTITY % obsolete-htext "| A">
318     <!ENTITY % block-p "| P ">
319 connolly 1.4
320 connolly 1.8 <!ENTITY % block "HR | %list | DL
321     | %pre | BLOCKQUOTE | ADDRESS
322     %block-form %block-p">
323    
324    
325 connolly 1.12 <![ %HTML.bodyBlockOnly [
326     <!ENTITY % current-htext "">
327     ]]>
328     <!ENTITY % current-htext "| %htext">
329    
330     <!ENTITY % body-content "%heading | %block %current-htext">
331 connolly 1.8 <!ELEMENT BODY O O (%body-content)*>
332    
333    
334 connolly 1.12 <!ELEMENT A - - (%heading|%block|%text)+ -(A)
335 connolly 1.8 -- @# Technically, this allows silliness like:
336     <H2><A>xyz<H1>h1</H1></A></H2>
337     The right way to do anchors outside of %htext is more like:
338     <as id=z1><H2>lkjlkj</h2><ae start=z1>
339     -->
340 connolly 1.4 <!ATTLIST A
341 connolly 1.6 %linkattributes;
342     >
343    
344     <!ELEMENT IMG - O EMPTY -- Embedded image -->
345     <!ATTLIST IMG
346 connolly 1.8 SRC %URI; #IMPLIED -- URI of document to embed --
347     ALT CDATA #IMPLIED
348     ALIGN (top|middle|bottom) #IMPLIED
349     ISMAP (ISMAP) #IMPLIED
350 connolly 1.6 >
351    
352    
353 connolly 1.8 <![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]>
354     <!ENTITY % p-content "(%htext)+">
355     <!ELEMENT P - O %p-content>
356 connolly 1.6 <!ELEMENT HR - O EMPTY -- horizontal rule -->
357 connolly 1.8 <!ELEMENT BR - O EMPTY -- @# BR -> &br; -->
358 connolly 1.6
359     <!ELEMENT ( %heading ) - - (%htext;)+>
360    
361 connolly 1.8 <!ELEMENT DL - - (DT*, DD?)+>
362     <!ATTLIST DL
363 connolly 1.11 COMPACT (COMPACT) #IMPLIED>
364 connolly 1.8
365     <!ELEMENT DT - O (%htext)+>
366     <!ELEMENT DD - O (%htext|%block)+>
367    
368     <!ELEMENT (%list) - - (LI)+>
369 connolly 1.2
370 connolly 1.8 <!ELEMENT LI - O (%htext|%block)+>
371 connolly 1.2
372 connolly 1.9 <!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... --
373 connolly 1.6 -- for quoting some other source -->
374 connolly 1.3
375 connolly 1.11 <!ELEMENT ADDRESS - - (%htext;|%block)+>
376 connolly 1.2
377 connolly 1.8 <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>
378 connolly 1.2 <!ATTLIST PRE
379 connolly 1.6 WIDTH NUMBER #implied
380 connolly 1.2 >
381    
382 connolly 1.6 <!-- Mnemonic character entities. -->
383 connolly 1.8
384     <!ENTITY % ISOlat1 PUBLIC
385     "ISO 8879:1986//ENTITIES Added Latin 1//EN">
386     %ISOlat1;
387    
388 connolly 1.11 <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->
389 connolly 1.12 <!ENTITY amp CDATA "&#38;" -- ampersand -->
390     <!ENTITY gt CDATA "&#62;" -- greater than -->
391     <!ENTITY lt CDATA "&#60;" -- less than -->
392     <!ENTITY quot CDATA "&#34;" -- double quote -->
393    
394     <!-- Processing Entities -->
395    
396 connolly 1.8 <!ENTITY nbsp "<? nonbreaking-space>">
397     <!-- @# should add entites for processing instructions
398     for line break, centering, etc. -->
399 connolly 1.6
400 connolly 1.3
401 connolly 1.8 <!-- Forms -->
402     <![ %HTML.forms [
403    
404     <!ENTITY % HTTP-Method "(GET | POST)">
405 connolly 1.9 <!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)>
406 connolly 1.8 <!ATTLIST FORM
407     ACTION %URI #REQUIRED
408     METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
409     ENCTYPE %Content-Type; #IMPLIED
410     >
411    
412     <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
413     RADIO | SUBMIT | RESET |
414     IMAGE | HIDDEN )">
415     <!ELEMENT INPUT - O EMPTY>
416     <!ATTLIST INPUT
417     TYPE %InputType #IMPLIED -- @# defaults to TEXT?? --
418     NAME CDATA #IMPLIED -- required for all but submit and reset --
419     VALUE CDATA #IMPLIED
420     SRC %URI #IMPLIED -- for image inputs --
421 connolly 1.11 CHECKED (CHECKED) #IMPLIED
422 connolly 1.8 SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
423     MAXLENGTH NUMBER #IMPLIED
424     ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
425     >
426    
427     <!ELEMENT SELECT - - (OPTION+)>
428     <!ATTLIST SELECT
429     NAME CDATA #REQUIRED
430     SIZE NUMBER #IMPLIED
431 connolly 1.11 MULTIPLE (MULTIPLE) #IMPLIED
432 connolly 1.8 >
433    
434     <!ELEMENT OPTION - O (#PCDATA)>
435     <!ATTLIST OPTION
436 connolly 1.11 SELECTED (SELECTED) #IMPLIED
437 connolly 1.8 VALUE CDATA #IMPLIED
438     >
439    
440     <!ELEMENT TEXTAREA - - (#PCDATA)>
441     <!ATTLIST TEXTAREA
442     NAME CDATA #REQUIRED
443     ROWS NUMBER #REQUIRED -- @#implied? --
444     COLS NUMBER #REQUIRED
445     >
446     ]]>
447 connolly 1.2
448 connolly 1.12 <!-- Obsolete Elements -->
449    
450     <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>
451     <!ENTITY % lit-content "RCDATA">
452     <!ELEMENT (%literal) - - %lit-content>
453    
454     <![ %HTML.PLAINTEXT [
455     <!ELEMENT PLAINTEXT - O EMPTY>
456     ]]>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24