Mercurial > hg > Aquinas
comparison dtd/html-entities.mod @ 0:bca6df27dbfd
mostly unchanged from http://www.cc.org/dtd
| author | ht |
|---|---|
| date | Sat, 19 Jan 2008 22:54:40 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:bca6df27dbfd |
|---|---|
| 1 <!-- | |
| 2 This is the entities DTD for Voyager. It is derived from | |
| 3 the HTML 4.0 strict DTD with a few changes to make it simple | |
| 4 to formalize as XML. It should be included before any element | |
| 5 declarations as it defines entities for the content models used | |
| 6 by most elements in Voyager. | |
| 7 | |
| 8 Copyright (c) 1998 W3C (MIT, INRIA, Keio), All Rights Reserved. | |
| 9 | |
| 10 Author: Dave Raggett <dsr@w3.org> | |
| 11 Date: 17th November 1998 | |
| 12 --> | |
| 13 | |
| 14 <!--================== Imported Names ====================================--> | |
| 15 | |
| 16 <!ENTITY % ContentType "CDATA"> | |
| 17 <!-- media type, as per [RFC2045] --> | |
| 18 <!ENTITY % ContentTypes "CDATA"> | |
| 19 <!-- comma-separated list of media types, as per [RFC2045] --> | |
| 20 <!ENTITY % Charset "CDATA"> | |
| 21 <!-- a character encoding, as per [RFC2045] --> | |
| 22 <!ENTITY % Charsets "CDATA"> | |
| 23 <!-- a space separated list of character encodings, as per [RFC2045] --> | |
| 24 <!ENTITY % LanguageCode "CDATA"> | |
| 25 <!-- a language code, as per [RFC1766] --> | |
| 26 <!ENTITY % Character "CDATA"> | |
| 27 <!-- a single character from [ISO10646] --> | |
| 28 <!ENTITY % Number "CDATA"> | |
| 29 <!-- one or more digits --> | |
| 30 <!ENTITY % LinkTypes "CDATA"> | |
| 31 <!-- space-separated list of link types --> | |
| 32 <!ENTITY % MediaDesc "CDATA"> | |
| 33 <!-- single or comma-separated list of media descriptors --> | |
| 34 <!ENTITY % URI "CDATA"> | |
| 35 <!-- a Uniform Resource Identifier, see [RFC1808] and [RFC1738] --> | |
| 36 | |
| 37 <!ENTITY % Datetime "CDATA"> <!-- date and time information. ISO date format --> | |
| 38 <!ENTITY % Script "CDATA"> <!-- script expression --> | |
| 39 <!ENTITY % StyleSheet "CDATA"> <!-- style sheet data --> | |
| 40 <!ENTITY % Text "CDATA"> <!-- render in this frame --> | |
| 41 <!ENTITY % FrameTarget "CDATA"> <!-- render in this frame --> | |
| 42 <!ENTITY % Length "CDATA"> <!-- nn for pixels or nn% for percentage length --> | |
| 43 <!ENTITY % MultiLength "CDATA"> <!-- pixel, percentage, or relative --> | |
| 44 <!ENTITY % MultiLengths "CDATA"> <!-- comma-separated list of MultiLength --> | |
| 45 <!ENTITY % Pixels "CDATA"> <!-- integer representing length in pixels --> | |
| 46 | |
| 47 <!-- these are used for image maps --> | |
| 48 <!ENTITY % Shape "(rect|circle|poly|default)"> | |
| 49 <!ENTITY % Coords "CDATA"> <!-- comma separated list of lengths --> | |
| 50 | |
| 51 <!--=================== Generic Attributes ===============================--> | |
| 52 | |
| 53 <!ENTITY % extra-attrs | |
| 54 "prev CDATA #IMPLIED | |
| 55 next CDATA #IMPLIED " | |
| 56 > <!-- for extensions --> | |
| 57 | |
| 58 <!-- core attributes common to most elements | |
| 59 id document-wide unique id | |
| 60 class space separated list of classes | |
| 61 style associated style info | |
| 62 title advisory title/amplification | |
| 63 --> | |
| 64 <!ENTITY % coreattrs | |
| 65 "id ID #IMPLIED | |
| 66 class CDATA #IMPLIED | |
| 67 style %StyleSheet; #IMPLIED | |
| 68 title %Text; #IMPLIED" | |
| 69 > | |
| 70 | |
| 71 <!-- internationalization attributes | |
| 72 lang language code (backwards compatible) | |
| 73 xml:lang language code (as per XML 1.0 spec) | |
| 74 dir direction for weak/neutral text | |
| 75 --> | |
| 76 <!ENTITY % i18n | |
| 77 "lang %LanguageCode; #IMPLIED | |
| 78 xml:lang %LanguageCode; #IMPLIED | |
| 79 dir (ltr|rtl) #IMPLIED" | |
| 80 > | |
| 81 | |
| 82 <!-- attributes for common UI events | |
| 83 onclick a pointer button was clicked | |
| 84 ondblclick a pointer button was double clicked | |
| 85 onmousedown a pointer button was pressed down | |
| 86 onmouseup a pointer button was released | |
| 87 onmousemove a pointer was moved onto the element | |
| 88 onmouseout a pointer was moved away from the element | |
| 89 onkeypress a key was pressed and released | |
| 90 onkeydown a key was pressed down | |
| 91 onkeyup a key was released | |
| 92 --> | |
| 93 <!ENTITY % events | |
| 94 "onclick %Script; #IMPLIED | |
| 95 ondblclick %Script; #IMPLIED | |
| 96 onmousedown %Script; #IMPLIED | |
| 97 onmouseup %Script; #IMPLIED | |
| 98 onmouseover %Script; #IMPLIED | |
| 99 onmousemove %Script; #IMPLIED | |
| 100 onmouseout %Script; #IMPLIED | |
| 101 onkeypress %Script; #IMPLIED | |
| 102 onkeydown %Script; #IMPLIED | |
| 103 onkeyup %Script; #IMPLIED" | |
| 104 > | |
| 105 | |
| 106 <!-- attributes for elements that can get the focus | |
| 107 accesskey accessibility key character | |
| 108 tabindex position in tabbing order | |
| 109 onfocus the element got the focus | |
| 110 onblur the element lost the focus | |
| 111 --> | |
| 112 <!ENTITY % focus | |
| 113 "accesskey %Character; #IMPLIED | |
| 114 tabindex %Number; #IMPLIED | |
| 115 onfocus %Script; #IMPLIED | |
| 116 onblur %Script; #IMPLIED" | |
| 117 > | |
| 118 | |
| 119 <!ENTITY % attrs "%coreattrs; %i18n; %events; %extra-attrs;"> | |
| 120 | |
| 121 <!--=================== Text Elements =====================================--> | |
| 122 | |
| 123 <!ENTITY % special | |
| 124 "a | br | span | bdo %media;"> | |
| 125 | |
| 126 <!-- core definition excludes fontstyle/phrase --> | |
| 127 <!ENTITY % inline "%special; %extra.inline;"> | |
| 128 | |
| 129 <!-- %Inline; covers inline or "text-level" elements --> | |
| 130 <!ENTITY % Inline "(#PCDATA | %inline; | %misc;)*"> | |
| 131 | |
| 132 <!--================== Block level elements ==============================--> | |
| 133 | |
| 134 <!ENTITY % heading "h1|h2|h3|h4|h5|h6"> | |
| 135 | |
| 136 <!ENTITY % block | |
| 137 "p | %heading; | div %extra.block;"> | |
| 138 | |
| 139 <!ENTITY % Block "(#PCDATA | %block; | %misc;)*"> | |
| 140 | |
| 141 <!-- %Flow; mixes Block and Inline and is used for list items etc. --> | |
| 142 <!ENTITY % Flow "(#PCDATA | %block; | %inline; | %misc;)*"> | |
| 143 | |
| 144 <!--================== HTML content models ===============================--> | |
| 145 | |
| 146 <!-- | |
| 147 HTML has two basic content models: | |
| 148 | |
| 149 %Inline; character level elements and text strings | |
| 150 %Block; block-like elements e.g. paragraphs and lists | |
| 151 --> | |
| 152 | |
| 153 <!-- this is used to adjust the content model for the html element --> | |
| 154 <!ENTITY % html.content "head, body"> | |
| 155 |
