| 1 |
<!-- |
| 2 |
====================================================================== |
| 3 |
Docutils Generic DTD |
| 4 |
====================================================================== |
| 5 |
:Author: David Goodger |
| 6 |
:Contact: [email protected] |
| 7 |
:Revision: $Revision: 10127 $ |
| 8 |
:Date: $Date: 2025-05-13 22:49:10 +0200 (Di, 13. Mai 2025) $ |
| 9 |
:Copyright: This DTD has been placed in the public domain. |
| 10 |
:Filename: docutils.dtd |
| 11 |
|
| 12 |
More information about this DTD (document type definition) and the |
| 13 |
Docutils project can be found at https://docutils.sourceforge.io/. |
| 14 |
The latest version of this DTD is available from |
| 15 |
https://docutils.sourceforge.io/docs/ref/docutils.dtd. |
| 16 |
|
| 17 |
The formal public identifier for this DTD is:: |
| 18 |
|
| 19 |
+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML |
| 20 |
--> |
| 21 |
|
| 22 |
<!-- |
| 23 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 24 |
Parameter Entities |
| 25 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 26 |
|
| 27 |
Parameter entities are used to simplify the DTD (reduce duplication) |
| 28 |
and to allow the DTD to be customized by wrapper DTDs. Parameter |
| 29 |
entities beginning with "additional" are meant to allow easy extension |
| 30 |
by wrapper DTDs. |
| 31 |
--> |
| 32 |
|
| 33 |
<!-- Attribute types |
| 34 |
================================================================== |
| 35 |
|
| 36 |
Expand the set of `XML standard attribute types`_. |
| 37 |
|
| 38 |
--> |
| 39 |
|
| 40 |
<!-- Boolean: no if zero(s), yes if any other value. --> |
| 41 |
<!ENTITY % yesorno "NMTOKEN"> |
| 42 |
|
| 43 |
<!-- Emphasize that the attribute value must be a number. --> |
| 44 |
<!ENTITY % number "NMTOKEN"> |
| 45 |
|
| 46 |
<!-- A number which may be immediately followed by a unit or percent sign. --> |
| 47 |
<!ENTITY % measure "CDATA"> |
| 48 |
|
| 49 |
<!-- A space-separated list of `class names`. |
| 50 |
|
| 51 |
Docutils normalizes class names to conform to HTML4.1 and CSS1.0 `name` |
| 52 |
requirements, i.e. the regular expression ``[a-z](-?[a-z0-9]+)*``, via an |
| 53 |
`identifier normalisation`. --> |
| 54 |
<!ENTITY % classnames.type "NMTOKENS"> |
| 55 |
|
| 56 |
<!-- A normalized `reference name`. |
| 57 |
|
| 58 |
The CDATA type is used because a `reference name` may consist of any text. |
| 59 |
|
| 60 |
"Normalization" implies replacing runs of whitespace with single space |
| 61 |
characters. Matching substitution references to definitions is case-sensitive |
| 62 |
but forgiving. Resolving other cross references ignores case. --> |
| 63 |
<!ENTITY % refname.type "CDATA"> |
| 64 |
|
| 65 |
<!-- A space-separated list of `reference names`. |
| 66 |
|
| 67 |
`Backslash escaping`_ is used for space characters inside a `reference name`. |
| 68 |
--> |
| 69 |
<!ENTITY % refnames.type "CDATA"> |
| 70 |
|
| 71 |
<!-- A space-separated list of `identifier keys`. |
| 72 |
|
| 73 |
The NMTOKENS type is used because `XML standard attribute types`_ |
| 74 |
do not include a list of IDs. |
| 75 |
--> |
| 76 |
<!ENTITY % ids.type "NMTOKENS"> |
| 77 |
|
| 78 |
<!-- A reference to an `identifier key` in another element's `ids` attribute. |
| 79 |
|
| 80 |
The NMTOKEN type is used, because Docutils `identifier keys` do not use the |
| 81 |
``ID`` attribute type, as required by the `IDREF Validity constraint`_. --> |
| 82 |
<!ENTITY % idref.type "NMTOKEN"> |
| 83 |
|
| 84 |
<!-- A list of references to `identifier keys` in other elements. --> |
| 85 |
<!ENTITY % idrefs.type "NMTOKENS"> |
| 86 |
|
| 87 |
<!-- References: |
| 88 |
.. _XML standard attribute types: |
| 89 |
https://www.w3.org/TR/REC-xml/#sec-attribute-types |
| 90 |
.. _IDREF Validity constraint: https://www.w3.org/TR/REC-xml/#idref |
| 91 |
.. _backslash escaping: rst/restructuredtext.html#escaping-mechanism |
| 92 |
--> |
| 93 |
|
| 94 |
|
| 95 |
<!-- Attributes |
| 96 |
================================================================== --> |
| 97 |
|
| 98 |
<!ENTITY % additional.basic.atts ""> |
| 99 |
|
| 100 |
<!-- |
| 101 |
Attributes shared by all elements in this DTD: |
| 102 |
|
| 103 |
- `ids` are unique identifiers, typically assigned by the system. The NMTOKENS |
| 104 |
attribute type is used because XML doesn't support a multiple-ID "IDS" type. |
| 105 |
- `names` are identifiers assigned in the markup. |
| 106 |
- `dupnames` is the same as `name`, used when it's a duplicate. |
| 107 |
- `source` is the name of the source of this document or fragment. |
| 108 |
- `classes` is used to transmit individuality information forward. |
| 109 |
--> |
| 110 |
<!ENTITY % basic.atts |
| 111 |
" ids %ids.type; #IMPLIED |
| 112 |
names %refnames.type; #IMPLIED |
| 113 |
dupnames %refnames.type; #IMPLIED |
| 114 |
source CDATA #IMPLIED |
| 115 |
classes %classnames.type; #IMPLIED |
| 116 |
%additional.basic.atts; "> |
| 117 |
|
| 118 |
<!-- External reference to a URI/URL. --> |
| 119 |
<!ENTITY % refuri.att |
| 120 |
" refuri CDATA #IMPLIED "> |
| 121 |
|
| 122 |
<!-- Internal reference to the `ids` attribute of an element. --> |
| 123 |
<!ENTITY % refid.att |
| 124 |
" refid %idref.type; #IMPLIED "> |
| 125 |
|
| 126 |
<!-- Space-separated list of `ids` references, for backlinks. --> |
| 127 |
<!ENTITY % backrefs.att |
| 128 |
" backrefs %idrefs.type; #IMPLIED "> |
| 129 |
|
| 130 |
<!-- |
| 131 |
Internal reference to the `name` attribute of an element. On a |
| 132 |
'target' element, 'refname' indicates an indirect target which may |
| 133 |
resolve to either an internal or external reference. |
| 134 |
--> |
| 135 |
<!ENTITY % refname.att |
| 136 |
" refname %refname.type; #IMPLIED "> |
| 137 |
|
| 138 |
<!ENTITY % additional.reference.atts ""> |
| 139 |
<!-- Collected hyperlink reference attributes. --> |
| 140 |
<!ENTITY % reference.atts |
| 141 |
" %refuri.att; |
| 142 |
%refid.att; |
| 143 |
%refname.att; |
| 144 |
%additional.reference.atts; "> |
| 145 |
|
| 146 |
<!-- Unnamed hyperlink. --> |
| 147 |
<!ENTITY % anonymous.att |
| 148 |
" anonymous %yesorno; #IMPLIED "> |
| 149 |
|
| 150 |
<!-- Auto-numbered footnote or title. --> |
| 151 |
<!ENTITY % auto.att |
| 152 |
" auto CDATA #IMPLIED "> |
| 153 |
|
| 154 |
<!-- XML standard attribute for whitespace-preserving elements. --> |
| 155 |
<!ENTITY % fixedspace.att |
| 156 |
" xml:space (default | preserve) #FIXED 'preserve' "> |
| 157 |
|
| 158 |
<!ENTITY % align-h.att |
| 159 |
" align (left | center | right) #IMPLIED "> |
| 160 |
|
| 161 |
<!ENTITY % align-hv.att |
| 162 |
" align (top | middle | bottom | left | center | right) #IMPLIED "> |
| 163 |
|
| 164 |
|
| 165 |
<!-- Element OR-Lists |
| 166 |
============================================================= --> |
| 167 |
|
| 168 |
<!ENTITY % additional.bibliographic.elements ""> |
| 169 |
<!ENTITY % bibliographic.elements |
| 170 |
" address | author | authors | contact | copyright | date | field |
| 171 |
| organization | revision | status | version |
| 172 |
%additional.bibliographic.elements; "> |
| 173 |
|
| 174 |
<!ENTITY % additional.section.elements ""> |
| 175 |
<!ENTITY % section.elements |
| 176 |
" section |
| 177 |
%additional.section.elements; "> |
| 178 |
|
| 179 |
<!ENTITY % additional.body.elements ""> |
| 180 |
<!ENTITY % body.elements |
| 181 |
" admonition | attention | block_quote | bullet_list |
| 182 |
| caution | citation | comment | compound | container |
| 183 |
| danger | definition_list | doctest_block | enumerated_list | error |
| 184 |
| field_list | figure | footnote | hint | image | important |
| 185 |
| line_block | literal_block | math_block | note | option_list |
| 186 |
| paragraph | pending | raw | reference | rubric |
| 187 |
| substitution_definition | system_message |
| 188 |
| table | target | tip | warning |
| 189 |
%additional.body.elements; "> |
| 190 |
|
| 191 |
<!ENTITY % additional.inline.elements ""> |
| 192 |
<!ENTITY % inline.elements |
| 193 |
" abbreviation | acronym | citation_reference | emphasis |
| 194 |
| footnote_reference | generated | image | inline | literal |
| 195 |
| math | problematic | raw | reference |
| 196 |
| strong | subscript | substitution_reference | superscript |
| 197 |
| target | title_reference |
| 198 |
%additional.inline.elements; "> |
| 199 |
|
| 200 |
|
| 201 |
<!-- Element Content Models |
| 202 |
================================================================== --> |
| 203 |
|
| 204 |
<!-- The structure model may not end with a transition. --> |
| 205 |
<!ENTITY % structure.model |
| 206 |
" ( ( (%body.elements; | topic | sidebar)+, transition? )*, |
| 207 |
( (%section.elements;), (transition?, (%section.elements;) )* )? )"> |
| 208 |
|
| 209 |
<!ENTITY % text.model |
| 210 |
" (#PCDATA | %inline.elements;)* "> |
| 211 |
|
| 212 |
|
| 213 |
<!-- Table Model |
| 214 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 215 |
|
| 216 |
This DTD uses the Exchange subset of the CALS-table model (OASIS |
| 217 |
Technical Memorandum 9901:1999 "XML Exchange Table Model DTD", |
| 218 |
http://www.oasis-open.org/html/tm9901.htm). |
| 219 |
--> |
| 220 |
|
| 221 |
<!ENTITY % calstblx PUBLIC |
| 222 |
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" |
| 223 |
"soextblx.dtd"> |
| 224 |
|
| 225 |
<!-- These parameter entities customize the table model DTD. --> |
| 226 |
<!-- table element TODO: use %tbl.table.att. Keep or drop pgwide? --> |
| 227 |
<!ENTITY % bodyatt |
| 228 |
" %basic.atts; |
| 229 |
%align-h.att; |
| 230 |
width %measure; #IMPLIED "> |
| 231 |
<!-- 1 colspec element is expected per table column: --> |
| 232 |
<!ENTITY % tbl.tgroup.mdl "colspec+,thead?,tbody"> |
| 233 |
<!ENTITY % tbl.tgroup.att " %basic.atts; "> |
| 234 |
<!ENTITY % tbl.thead.att " %basic.atts; "> |
| 235 |
<!ENTITY % tbl.tbody.att " %basic.atts; "> |
| 236 |
<!ENTITY % tbl.colspec.att |
| 237 |
" %basic.atts; |
| 238 |
stub %yesorno; #IMPLIED "> |
| 239 |
<!ENTITY % tbl.row.att " %basic.atts; "> |
| 240 |
<!-- all body elements (including nested tables) are supported --> |
| 241 |
<!ENTITY % tbl.entry.mdl " (%body.elements;)* "> |
| 242 |
<!ENTITY % tbl.entry.att |
| 243 |
" %basic.atts; |
| 244 |
morecols %number; #IMPLIED "> |
| 245 |
|
| 246 |
<!-- |
| 247 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 248 |
Root Element |
| 249 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 250 |
--> |
| 251 |
|
| 252 |
<!-- Optional elements may be generated by internal processing. --> |
| 253 |
<!ELEMENT document |
| 254 |
( (title, subtitle?)?, |
| 255 |
meta*, |
| 256 |
decoration?, |
| 257 |
(docinfo, transition?)?, |
| 258 |
%structure.model; )> |
| 259 |
<!ATTLIST document |
| 260 |
%basic.atts; |
| 261 |
title CDATA #IMPLIED> |
| 262 |
|
| 263 |
<!-- |
| 264 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 265 |
Title Elements |
| 266 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 267 |
--> |
| 268 |
|
| 269 |
<!ELEMENT title %text.model;> |
| 270 |
<!ATTLIST title |
| 271 |
%basic.atts; |
| 272 |
%refid.att; |
| 273 |
%auto.att;> |
| 274 |
|
| 275 |
<!ELEMENT subtitle %text.model;> |
| 276 |
<!ATTLIST subtitle %basic.atts;> |
| 277 |
|
| 278 |
<!-- |
| 279 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 280 |
Bibliographic Elements |
| 281 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 282 |
--> |
| 283 |
|
| 284 |
<!-- Container for bibliographic elements. Must not be empty. --> |
| 285 |
<!ELEMENT docinfo (%bibliographic.elements;)+> |
| 286 |
<!ATTLIST docinfo %basic.atts;> |
| 287 |
|
| 288 |
<!ELEMENT author %text.model;> |
| 289 |
<!ATTLIST author %basic.atts;> |
| 290 |
|
| 291 |
<!ELEMENT authors (author, organization?, address?, contact?)+> |
| 292 |
<!ATTLIST authors %basic.atts;> |
| 293 |
|
| 294 |
<!ELEMENT organization %text.model;> |
| 295 |
<!ATTLIST organization %basic.atts;> |
| 296 |
|
| 297 |
<!ELEMENT address %text.model;> |
| 298 |
<!ATTLIST address |
| 299 |
%basic.atts; |
| 300 |
%fixedspace.att;> |
| 301 |
|
| 302 |
<!ELEMENT contact %text.model;> |
| 303 |
<!ATTLIST contact %basic.atts;> |
| 304 |
|
| 305 |
<!ELEMENT version %text.model;> |
| 306 |
<!ATTLIST version %basic.atts;> |
| 307 |
|
| 308 |
<!ELEMENT revision %text.model;> |
| 309 |
<!ATTLIST revision %basic.atts;> |
| 310 |
|
| 311 |
<!ELEMENT status %text.model;> |
| 312 |
<!ATTLIST status %basic.atts;> |
| 313 |
|
| 314 |
<!ELEMENT date %text.model;> |
| 315 |
<!ATTLIST date %basic.atts;> |
| 316 |
|
| 317 |
<!ELEMENT copyright %text.model;> |
| 318 |
<!ATTLIST copyright %basic.atts;> |
| 319 |
|
| 320 |
<!-- Container for "hidden" meta-data. Attributes follow HTML --> |
| 321 |
<!ELEMENT meta EMPTY> |
| 322 |
<!ATTLIST meta |
| 323 |
name NMTOKEN #IMPLIED |
| 324 |
content CDATA #REQUIRED |
| 325 |
http-equiv CDATA #IMPLIED |
| 326 |
scheme CDATA #IMPLIED |
| 327 |
lang CDATA #IMPLIED |
| 328 |
dir (ltr | rtl | auto) #IMPLIED |
| 329 |
media CDATA #IMPLIED |
| 330 |
> |
| 331 |
|
| 332 |
<!-- |
| 333 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 334 |
Decoration Elements |
| 335 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 336 |
--> |
| 337 |
|
| 338 |
<!ELEMENT decoration (header?, footer?)> |
| 339 |
<!ATTLIST decoration %basic.atts;> |
| 340 |
|
| 341 |
<!ELEMENT header (%body.elements;)+> |
| 342 |
<!ATTLIST header %basic.atts;> |
| 343 |
|
| 344 |
<!ELEMENT footer (%body.elements;)+> |
| 345 |
<!ATTLIST footer %basic.atts;> |
| 346 |
|
| 347 |
<!-- |
| 348 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 349 |
Structural Elements |
| 350 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 351 |
--> |
| 352 |
|
| 353 |
<!ELEMENT section |
| 354 |
(title, subtitle?, %structure.model;)> |
| 355 |
<!ATTLIST section %basic.atts;> |
| 356 |
|
| 357 |
<!ELEMENT topic (title?, (%body.elements;)+)> |
| 358 |
<!ATTLIST topic %basic.atts;> |
| 359 |
|
| 360 |
<!ELEMENT sidebar ((title, subtitle?)?, (%body.elements; | topic)+)> |
| 361 |
<!ATTLIST sidebar %basic.atts;> |
| 362 |
|
| 363 |
<!ELEMENT transition EMPTY> |
| 364 |
<!ATTLIST transition %basic.atts;> |
| 365 |
|
| 366 |
<!-- |
| 367 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 368 |
Body Elements |
| 369 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 370 |
--> |
| 371 |
|
| 372 |
<!ELEMENT paragraph %text.model;> |
| 373 |
<!ATTLIST paragraph %basic.atts;> |
| 374 |
|
| 375 |
<!ELEMENT compound (%body.elements;)+> |
| 376 |
<!ATTLIST compound %basic.atts;> |
| 377 |
|
| 378 |
<!ELEMENT container (%body.elements;)+> |
| 379 |
<!ATTLIST container %basic.atts;> |
| 380 |
|
| 381 |
<!ELEMENT bullet_list (list_item+)> |
| 382 |
<!ATTLIST bullet_list |
| 383 |
%basic.atts; |
| 384 |
bullet CDATA #IMPLIED> |
| 385 |
|
| 386 |
<!ELEMENT enumerated_list (list_item+)> |
| 387 |
<!ATTLIST enumerated_list |
| 388 |
%basic.atts; |
| 389 |
enumtype (arabic | loweralpha | upperalpha |
| 390 |
| lowerroman | upperroman) |
| 391 |
#IMPLIED |
| 392 |
prefix CDATA #IMPLIED |
| 393 |
suffix CDATA #IMPLIED |
| 394 |
start %number; #IMPLIED> |
| 395 |
|
| 396 |
<!ELEMENT list_item (%body.elements;)*> |
| 397 |
<!ATTLIST list_item %basic.atts;> |
| 398 |
|
| 399 |
<!ELEMENT definition_list (definition_list_item+)> |
| 400 |
<!ATTLIST definition_list %basic.atts;> |
| 401 |
|
| 402 |
<!ELEMENT definition_list_item ((term, classifier*)+, definition)> |
| 403 |
<!ATTLIST definition_list_item %basic.atts;> |
| 404 |
|
| 405 |
<!ELEMENT term %text.model;> |
| 406 |
<!ATTLIST term %basic.atts;> |
| 407 |
|
| 408 |
<!ELEMENT classifier %text.model;> |
| 409 |
<!ATTLIST classifier %basic.atts;> |
| 410 |
|
| 411 |
<!ELEMENT definition (%body.elements;)+> |
| 412 |
<!ATTLIST definition %basic.atts;> |
| 413 |
|
| 414 |
<!ELEMENT field_list (field+)> |
| 415 |
<!ATTLIST field_list %basic.atts;> |
| 416 |
|
| 417 |
<!ELEMENT field (field_name, field_body)> |
| 418 |
<!ATTLIST field %basic.atts;> |
| 419 |
|
| 420 |
<!ELEMENT field_name %text.model;> |
| 421 |
<!ATTLIST field_name %basic.atts;> |
| 422 |
|
| 423 |
<!-- May be empty. --> |
| 424 |
<!ELEMENT field_body (%body.elements;)*> |
| 425 |
<!ATTLIST field_body %basic.atts;> |
| 426 |
|
| 427 |
<!ELEMENT option_list (option_list_item+)> |
| 428 |
<!ATTLIST option_list %basic.atts;> |
| 429 |
|
| 430 |
<!ELEMENT option_list_item (option_group, description)> |
| 431 |
<!ATTLIST option_list_item %basic.atts;> |
| 432 |
|
| 433 |
<!ELEMENT option_group (option+)> |
| 434 |
<!ATTLIST option_group %basic.atts;> |
| 435 |
|
| 436 |
<!ELEMENT option (option_string, option_argument*)> |
| 437 |
<!ATTLIST option %basic.atts;> |
| 438 |
|
| 439 |
<!ELEMENT option_string (#PCDATA)> |
| 440 |
<!ATTLIST option_string %basic.atts;> |
| 441 |
|
| 442 |
<!-- |
| 443 |
`delimiter` contains the text preceding the `option_argument`: either |
| 444 |
the text separating it from the `option_string` (typically either "=" |
| 445 |
or " ") or the text between option arguments (typically either "," or |
| 446 |
" "). |
| 447 |
--> |
| 448 |
<!ELEMENT option_argument (#PCDATA)> |
| 449 |
<!ATTLIST option_argument |
| 450 |
%basic.atts; |
| 451 |
delimiter CDATA #IMPLIED> |
| 452 |
|
| 453 |
<!ELEMENT description (%body.elements;)+> |
| 454 |
<!ATTLIST description %basic.atts;> |
| 455 |
|
| 456 |
<!ELEMENT literal_block %text.model;> |
| 457 |
<!ATTLIST literal_block |
| 458 |
%basic.atts; |
| 459 |
%fixedspace.att;> |
| 460 |
|
| 461 |
<!-- |
| 462 |
`math_block` contains a block of text in "LaTeX math format" |
| 463 |
that is typeset as mathematical notation (display formula). |
| 464 |
--> |
| 465 |
<!ELEMENT math_block (#PCDATA)> |
| 466 |
<!ATTLIST math_block |
| 467 |
%basic.atts; |
| 468 |
%fixedspace.att;> |
| 469 |
|
| 470 |
<!ELEMENT line_block (line | line_block)+> |
| 471 |
<!ATTLIST line_block %basic.atts;> |
| 472 |
|
| 473 |
<!ELEMENT line %text.model;> |
| 474 |
<!ATTLIST line %basic.atts;> |
| 475 |
|
| 476 |
<!ELEMENT block_quote ((%body.elements;)+, attribution?)> |
| 477 |
<!ATTLIST block_quote %basic.atts;> |
| 478 |
|
| 479 |
<!ELEMENT attribution %text.model;> |
| 480 |
<!ATTLIST attribution %basic.atts;> |
| 481 |
|
| 482 |
<!ELEMENT doctest_block %text.model;> |
| 483 |
<!ATTLIST doctest_block |
| 484 |
%basic.atts; |
| 485 |
%fixedspace.att;> |
| 486 |
|
| 487 |
<!ELEMENT attention (%body.elements;)+> |
| 488 |
<!ATTLIST attention %basic.atts;> |
| 489 |
|
| 490 |
<!ELEMENT caution (%body.elements;)+> |
| 491 |
<!ATTLIST caution %basic.atts;> |
| 492 |
|
| 493 |
<!ELEMENT danger (%body.elements;)+> |
| 494 |
<!ATTLIST danger %basic.atts;> |
| 495 |
|
| 496 |
<!ELEMENT error (%body.elements;)+> |
| 497 |
<!ATTLIST error %basic.atts;> |
| 498 |
|
| 499 |
<!ELEMENT hint (%body.elements;)+> |
| 500 |
<!ATTLIST hint %basic.atts;> |
| 501 |
|
| 502 |
<!ELEMENT important (%body.elements;)+> |
| 503 |
<!ATTLIST important %basic.atts;> |
| 504 |
|
| 505 |
<!ELEMENT note (%body.elements;)+> |
| 506 |
<!ATTLIST note %basic.atts;> |
| 507 |
|
| 508 |
<!ELEMENT tip (%body.elements;)+> |
| 509 |
<!ATTLIST tip %basic.atts;> |
| 510 |
|
| 511 |
<!ELEMENT warning (%body.elements;)+> |
| 512 |
<!ATTLIST warning %basic.atts;> |
| 513 |
|
| 514 |
<!ELEMENT admonition (title, (%body.elements;)+)> |
| 515 |
<!ATTLIST admonition %basic.atts;> |
| 516 |
|
| 517 |
<!ELEMENT footnote (label?, (%body.elements;)+)> |
| 518 |
<!ATTLIST footnote |
| 519 |
%basic.atts; |
| 520 |
%backrefs.att; |
| 521 |
%auto.att;> |
| 522 |
|
| 523 |
<!ELEMENT citation (label, (%body.elements;)+)> |
| 524 |
<!ATTLIST citation |
| 525 |
%basic.atts; |
| 526 |
%backrefs.att;> |
| 527 |
|
| 528 |
<!ELEMENT label (#PCDATA)> |
| 529 |
<!ATTLIST label %basic.atts;> |
| 530 |
|
| 531 |
<!ELEMENT rubric %text.model;> |
| 532 |
<!ATTLIST rubric %basic.atts;> |
| 533 |
|
| 534 |
<!-- Empty except when used as an inline element. --> |
| 535 |
<!ELEMENT target %text.model;> |
| 536 |
<!ATTLIST target |
| 537 |
%basic.atts; |
| 538 |
%reference.atts; |
| 539 |
%anonymous.att;> |
| 540 |
|
| 541 |
<!ELEMENT substitution_definition %text.model;> |
| 542 |
<!ATTLIST substitution_definition |
| 543 |
%basic.atts; |
| 544 |
ltrim %yesorno; #IMPLIED |
| 545 |
rtrim %yesorno; #IMPLIED> |
| 546 |
|
| 547 |
<!ELEMENT comment (#PCDATA)> |
| 548 |
<!ATTLIST comment |
| 549 |
%basic.atts; |
| 550 |
%fixedspace.att;> |
| 551 |
|
| 552 |
<!ELEMENT pending EMPTY> |
| 553 |
<!ATTLIST pending %basic.atts;> |
| 554 |
|
| 555 |
<!ELEMENT figure ((image|reference), ((caption, legend?) | legend)) > |
| 556 |
<!ATTLIST figure |
| 557 |
%basic.atts; |
| 558 |
%align-h.att; |
| 559 |
width %measure; #IMPLIED> |
| 560 |
|
| 561 |
<!-- Also an inline element. --> |
| 562 |
<!ELEMENT image EMPTY> |
| 563 |
<!ATTLIST image |
| 564 |
%basic.atts; |
| 565 |
%align-hv.att; |
| 566 |
uri CDATA #REQUIRED |
| 567 |
alt CDATA #IMPLIED |
| 568 |
height %measure; #IMPLIED |
| 569 |
width %measure; #IMPLIED |
| 570 |
scale %number; #IMPLIED |
| 571 |
loading (embed | link | lazy) #IMPLIED> |
| 572 |
|
| 573 |
<!ELEMENT caption %text.model;> |
| 574 |
<!ATTLIST caption %basic.atts;> |
| 575 |
|
| 576 |
<!ELEMENT legend (%body.elements;)+> |
| 577 |
<!ATTLIST legend %basic.atts;> |
| 578 |
|
| 579 |
<!-- |
| 580 |
Table elements: table, tgroup, colspec, thead, tbody, row, entry. |
| 581 |
--> |
| 582 |
%calstblx; |
| 583 |
|
| 584 |
<!-- Used to record processing information. --> |
| 585 |
<!ELEMENT system_message (%body.elements;)+> |
| 586 |
<!ATTLIST system_message |
| 587 |
%basic.atts; |
| 588 |
%backrefs.att; |
| 589 |
level %number; #IMPLIED |
| 590 |
line %number; #IMPLIED |
| 591 |
type NMTOKEN #IMPLIED> |
| 592 |
|
| 593 |
<!-- Used to pass raw data through the system. Also inline. --> |
| 594 |
<!ELEMENT raw (#PCDATA)> |
| 595 |
<!ATTLIST raw |
| 596 |
%basic.atts; |
| 597 |
%fixedspace.att; |
| 598 |
format NMTOKENS #IMPLIED> |
| 599 |
|
| 600 |
<!-- |
| 601 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 602 |
Inline Elements |
| 603 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 604 |
|
| 605 |
Inline elements occur within the text contents of body elements. Some |
| 606 |
nesting of inline elements is allowed by these definitions, with the |
| 607 |
following caveats: |
| 608 |
|
| 609 |
- An inline element may not contain a nested element of the same type |
| 610 |
(e.g. <strong> may not contain another <strong>). |
| 611 |
- Nested inline elements may or may not be supported by individual |
| 612 |
applications using this DTD. |
| 613 |
- The inline elements <footnote_reference>, <citation_reference>, |
| 614 |
<math>, and <image> do not support nesting. |
| 615 |
--> |
| 616 |
|
| 617 |
<!ELEMENT emphasis %text.model;> |
| 618 |
<!ATTLIST emphasis %basic.atts;> |
| 619 |
|
| 620 |
<!ELEMENT strong %text.model;> |
| 621 |
<!ATTLIST strong %basic.atts;> |
| 622 |
|
| 623 |
<!ELEMENT literal %text.model;> |
| 624 |
<!ATTLIST literal %basic.atts;> |
| 625 |
|
| 626 |
<!ELEMENT math (#PCDATA)> |
| 627 |
<!ATTLIST math %basic.atts;> |
| 628 |
|
| 629 |
<!-- Can also be a body element, when it contains an "image" element. |
| 630 |
"name" will be removed from the ATTLIST in Docutils 1.0 --> |
| 631 |
<!ELEMENT reference %text.model;> |
| 632 |
<!ATTLIST reference |
| 633 |
name CDATA #IMPLIED |
| 634 |
%basic.atts; |
| 635 |
%reference.atts; |
| 636 |
%anonymous.att;> |
| 637 |
|
| 638 |
<!ELEMENT footnote_reference (#PCDATA)> |
| 639 |
<!ATTLIST footnote_reference |
| 640 |
%basic.atts; |
| 641 |
%refid.att; |
| 642 |
%refname.att; |
| 643 |
%auto.att;> |
| 644 |
|
| 645 |
<!ELEMENT citation_reference (#PCDATA)> |
| 646 |
<!ATTLIST citation_reference |
| 647 |
%basic.atts; |
| 648 |
%refid.att; |
| 649 |
%refname.att;> |
| 650 |
|
| 651 |
<!ELEMENT substitution_reference %text.model;> |
| 652 |
<!ATTLIST substitution_reference |
| 653 |
%basic.atts; |
| 654 |
%refname.att;> |
| 655 |
|
| 656 |
<!ELEMENT title_reference %text.model;> |
| 657 |
<!ATTLIST title_reference %basic.atts;> |
| 658 |
|
| 659 |
<!ELEMENT abbreviation %text.model;> |
| 660 |
<!ATTLIST abbreviation %basic.atts;> |
| 661 |
|
| 662 |
<!ELEMENT acronym %text.model;> |
| 663 |
<!ATTLIST acronym %basic.atts;> |
| 664 |
|
| 665 |
<!ELEMENT superscript %text.model;> |
| 666 |
<!ATTLIST superscript %basic.atts;> |
| 667 |
|
| 668 |
<!ELEMENT subscript %text.model;> |
| 669 |
<!ATTLIST subscript %basic.atts;> |
| 670 |
|
| 671 |
<!ELEMENT inline %text.model;> |
| 672 |
<!ATTLIST inline %basic.atts;> |
| 673 |
|
| 674 |
<!ELEMENT problematic %text.model;> |
| 675 |
<!ATTLIST problematic |
| 676 |
%basic.atts; |
| 677 |
%refid.att;> |
| 678 |
|
| 679 |
<!ELEMENT generated %text.model;> |
| 680 |
<!ATTLIST generated %basic.atts;> |
| 681 |
|
| 682 |
<!-- |
| 683 |
Local Variables: |
| 684 |
mode: sgml |
| 685 |
indent-tabs-mode: nil |
| 686 |
fill-column: 70 |
| 687 |
End: |
| 688 |
--> |