Parent Directory
|
Revision Log
Makefile: * doctype-mosaic.sgml is obsolete: The "default" version of the DTD parses everything now... (after a few tweaks here and there) html.dtd: * Changed BODY to allow %htext, making <P> start tags not necessary, but keeping <P> as a container. This means I don't really need a separate mosaid mode any more. * Moved several of the features that are incompatible with extant docs under a %HTML.Prescriptive feature set. * Added HTML.Version entity, for use by code generation tools. This entity varies according to the feature set used. * Changed the "default" mode of some features: +<!ENTITY % HTML.anchorNameCDATA "INCLUDE" +<!ENTITY % HTML.PLAINTEXT "INCLUDE" +<!ENTITY % HTML.font-phrase "INCLUDE" * Changed several attribute names to coincide with their values, for a hacked version of attribute minimization support in libwww. * Added %block to ADDRESS content * Added a #DEFAULT entity so that undefined entities are legal (Hmmm...)
| 1 | connolly | 1.7 | <!-- html.dtd |
| 2 | |||
| 3 | connolly | 1.6 | Document Type Definition for the HyperText Markup Language |
| 4 | as used by the World Wide Web application (HTML DTD). | ||
| 5 | connolly | 1.5 | |
| 6 | connolly | 1.11 | $Id: html.dtd,v 1.10 1994/04/19 17:24:06 connolly Exp $ |
| 7 | |||
| 8 | connolly | 1.2 | --> |
| 9 | |||
| 10 | connolly | 1.8 | <!-- Feature Test Entities --> |
| 11 | |||
| 12 | <!-- To use these, write your document like: | ||
| 13 | <!DOCTYPE HTML [ | ||
| 14 | <!ENTITY % HTML.Optional "INCLUDE"> | ||
| 15 | <!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN"> | ||
| 16 | %html; | ||
| 17 | ]> | ||
| 18 | <TITLE>Here's my doc</TITLE> | ||
| 19 | <p>It uses lots of optional features | ||
| 20 | |||
| 21 | In practice, if you're using sgmls to validate your docs, | ||
| 22 | you can stick the <!DOCTYPE [...]> in a separate file and | ||
| 23 | validate with: | ||
| 24 | sgmls -s doctype.sgml foo.html | ||
| 25 | --> | ||
| 26 | |||
| 27 | <!ENTITY % HTML.Minimal "IGNORE"> | ||
| 28 | <!ENTITY % HTML.Obsolete "IGNORE"> | ||
| 29 | connolly | 1.11 | <!ENTITY % HTML.Prescriptive "IGNORE"> |
| 30 | connolly | 1.8 | |
| 31 | <![ %HTML.Minimal [ | ||
| 32 | <!ENTITY % HTML.linkRelationships "IGNORE"> | ||
| 33 | <!ENTITY % HTML.linkMethods "IGNORE"> | ||
| 34 | <!ENTITY % HTML.linkRedundantInfo "IGNORE"> | ||
| 35 | <!ENTITY % HTML.forms "IGNORE"> | ||
| 36 | <!-- @@ nested lists --> | ||
| 37 | <!-- @@ phrases --> | ||
| 38 | connolly | 1.11 | <!-- @@ headers inside A --> |
| 39 | <!-- @@ nested phrases, fonts --> | ||
| 40 | connolly | 1.8 | ]]> |
| 41 | |||
| 42 | <![ %HTML.Obsolete [ | ||
| 43 | <!ENTITY % HTML.titleCDATA "INCLUDE"> | ||
| 44 | <!ENTITY % HTML.litCDATA "INCLUDE"> | ||
| 45 | <!ENTITY % HTML.pSeparator "INCLUDE"> | ||
| 46 | ]]> | ||
| 47 | |||
| 48 | connolly | 1.11 | <![ %HTML.Prescriptive [ |
| 49 | <!ENTITY % HTML.font-phrase "IGNORE"> | ||
| 50 | <!ENTITY % HTML.anchorNameCDATA "IGNORE"> | ||
| 51 | <!ENTITY % HTML.PLAINTEXT "IGNORE"> | ||
| 52 | <!ENTITY HTML.Version | ||
| 53 | "-//connolly hal.com//DTD WWW HTML | ||
| 54 | $Date 1994/04/19 17:24:06 $ Prescriptive//EN"> | ||
| 55 | ]]> | ||
| 56 | |||
| 57 | <!ENTITY HTML.Version | ||
| 58 | "-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" | ||
| 59 | -- public identifier for "default" version -- | ||
| 60 | -- actually, take the $'s out to get the real public identifer, -- | ||
| 61 | -- since $ is illegal in public identifier. When DTD stabilizes, -- | ||
| 62 | -- we'll need to stop using RCS keywords to version the pub id -- | ||
| 63 | > | ||
| 64 | |||
| 65 | connolly | 1.9 | <!ENTITY % HTML.GO "IGNORE" |
| 66 | -- The GO element used in ORA GNN. What is this??? --> | ||
| 67 | |||
| 68 | <!ENTITY % HTML.aEndOmissable "IGNORE" | ||
| 69 | -- infer </A> tags, as in ORA GNN stuff --> | ||
| 70 | |||
| 71 | <!ENTITY % HTML.isindexAtEnd "IGNORE" | ||
| 72 | -- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> | ||
| 73 | |||
| 74 | connolly | 1.8 | <!ENTITY % HTML.pSeparator "IGNORE" |
| 75 | -- use P element as paragraph separator, rather that container. | ||
| 76 | This means not all paragraphs need to start with a <P> tag. | ||
| 77 | --> | ||
| 78 | |||
| 79 | <!ENTITY % HTML.linkRelationships "INCLUDE" | ||
| 80 | -- Adding markup to links to show the relationship between | ||
| 81 | ends of a link | ||
| 82 | see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html | ||
| 83 | --> | ||
| 84 | |||
| 85 | <!ENTITY % HTML.linkMethods "INCLUDE" | ||
| 86 | -- Adding markup to links to show the methods supported | ||
| 87 | by the referent object | ||
| 88 | see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html | ||
| 89 | --> | ||
| 90 | |||
| 91 | <!ENTITY % HTML.linkRedundantInfo "INCLUDE" | ||
| 92 | -- Adding markup to links to give redundant information | ||
| 93 | like URN, content type, title... | ||
| 94 | --> | ||
| 95 | |||
| 96 | connolly | 1.11 | <!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
| 97 | connolly | 1.8 | -- Anchor names should be distinct. SGML parser can validate |
| 98 | this if the NAME attribute of the A element is declared as ID. | ||
| 99 | But that restricts the syntax of an anchor name to an SGML name, | ||
| 100 | i.e. a letter followed by letters, numbers, periods and dashes, | ||
| 101 | up to NAMELEN (34) characters long. | ||
| 102 | --> | ||
| 103 | |||
| 104 | connolly | 1.11 | <!ENTITY % HTML.PLAINTEXT "INCLUDE" |
| 105 | connolly | 1.8 | -- Support for the <PLAINTEXT> tag as a sign of the |
| 106 | end of th HTML data stream and the beginning of a stream | ||
| 107 | of text/plain data | ||
| 108 | --> | ||
| 109 | |||
| 110 | <!ENTITY % HTML.titleCDATA "IGNORE" | ||
| 111 | -- Is the TITLE element #PCDATA, RCDATA, or CDATA content? | ||
| 112 | On Mosaic, it's #PCDATA, but in the linemode browser, | ||
| 113 | it's more like CDATA, but not quite. | ||
| 114 |