1 <!-- ============================================================= -->
2 <!-- Gamebook Document Type Definition v0.13 -->
3 <!-- ============================================================= -->
6 This DTD was designed around XML 1.0.
8 This gamebook DTD is aimed primarily at the books under development by
9 Project Aon (http://www.projectaon.org/). Future versions may be of
14 13 November 2012 (version 0.13.3)
15 * added the "puzzle" and "deadend" elements
17 24 May 2011 (version 0.13.2)
18 * added the "relationship" attribute to the "creator" and "contributor"
21 23 May 2011 (version 0.13.1)
22 * added the "sort-name" attribute to the "creator" and "contributor"
25 5 November 2010 (version 0.13.0)
26 * changed the "is" attribute on the "when" element to "value"
28 25 October 2010 (version 0.12.7)
29 * Made the "signpost" element mixed content
31 13 September 2010 (version 0.12.6)
32 * Added the "poetry" element
34 30 July 2010 (version 0.12.5)
35 * Added the "originalwidth", "posx", and "posy" attributes to the
38 28 July 2010 (version 0.12.4)
39 * Added the "choose", "when", and "otherwise" elements
41 1 April 2009 (version 0.12.3)
42 * Added the "start" attribute to ordered lists.
43 * Added the "value" attribute to list items.
45 19 December 2006 (version 0.12.2)
46 * Added the "line" element to the inline elements list.
48 19 December 2006 (version 0.12.1)
49 * Upgraded the table model to included "caption", "colgroup", "thead",
50 "tfoot", and "tbdoy" elements and the cell scoping attributes
51 "rowspan", "colspan", "axis", and "scope".
52 * Deprecated the "br" element in favor of the "line" element.
54 25 March 2006 (version 0.12.0)
55 * Added "illref", "illustrations" and "illgroup". Still backwards
58 26 December 2005 (version 0.11.4)
59 * Added link.attributes and the optional "series" attribute to
60 "bookref", and fleshed out the "bookref" and "footref"
63 5 December 2005 (version 0.11.3)
64 * Corrected ATTLISTs of character elements
65 * Added "ch.apos", "ch.frac116", and "ch.plus" elements
67 9 April 2005 (version 0.11.2)
68 * Added the following inline elements: "bookref", "footref".
69 * Added the character elements to replace the use of character
70 entities (except in attributes). These allow a processor (e.g.
71 a XSL transformation) to decide how characters should be
72 represented, not this DTD.
74 18 April 2003 (version 0.11.1)
75 * Added the following inline elements: "onomatopoeia", "spell",
78 27 January 2003 (version 0.11.0)
79 * Moved the optional "footnotes" element between the "meta" and
82 10 January 2003 (version 0.10.4)
83 * Removed the "inline.content" entity from the declaration of the
84 contents of the "blockquote" element. This will break some existing
87 7 January 2003 (version 0.10.3)
88 * Made the "src", "width", and "height" attributes of the "instance"
91 4 January 2003 (version 0.10.2)
92 * Moved the specialized character entity definitions into module
95 5 October 2002 (version 0.10.1)
96 * Added the "lellips" and "minus" entities and changed the definition
97 of the "emdash" entity.
99 5 September 2002 (version 0.10.0)
100 * Added the "quote" element.
102 31 August 2002 (version 0.9.1)
103 * Added the "xml:lang" attribute to the "core.attributes" entity.
104 Although this could be used for most elements, it is primarily
105 aimed at the "foreign" element.
107 6 July 2002 (version 0.9)
108 * Replaced the "caption" element and the "illustrator" attribute with
109 the use of the "meta" element.
110 * Renamed the "illustration-instance" element to simply "instance".
111 * Removed the "character-attribute" element.
112 * Added the "typ" element for typographical markup.
113 * Removed the "shortname" attribute.
115 1 June 2002 (version 0.8.3)
116 * Removed the "marker" attribute from the "footnote" element.
118 29 April 2002 (vesion 0.8.2)
119 * Changed the content of the "enemy" element from "#PCDATA" to
122 4 April 2002 (version 0.8.1)
123 * Added the "thinspace" entity
125 3 April 2002 (version 0.8.0)
126 * Added the "thought" element.
127 * Added the "foreign" element.
129 15 March 2002 (version 0.7.0)
130 * Changed the name of the "illustration-set" element to "illustration"
131 and changed the name of the "illustration" element to
132 "illustration-instance".
133 * Made many minor changes to bring the DTD up to current practice.
135 11 May 2001 (version 0.6.0)
136 * Removed the "publication-date" element.
138 5 May 2001 (version 0.5.0)
139 * Added facilities for transformation to LaTeX - mainly appropriate
141 * Added the "marker" attribute to the "footnote" element.
143 1 May 2001 (version 0.4.0)
145 * Added the "link" element to the set of allowable "meta" elements.
146 Although not a Dublin Core meta-data element, it's functionality
147 adds a lot to the document.
149 30 April 2001 (version 0.3.0)
151 * Changed the basic orgranization of the sections by allowing them to
152 have their own meta section instead of a "section-title" element.
153 * Changed the name of the "section-data" element to simply "data".
155 17 April 2001 (version 0.2.0)
157 * Changed some of the block and inline elements in order to make them
160 14 April 2001 (version 0.1.0)
164 <!-- ============================================================= -->
166 <!-- ============================================================= -->
167 <!-- Table of Contents -->
168 <!-- ============================================================= -->
174 B. Character Entities
175 II. Hierarchical Elements
178 V. Character Elements
181 A. Valid Document Example
185 <!-- ============================================================= -->
187 <!-- ============================================================= -->
189 <!-- ::::::::::::::::::::: General Entities :::::::::::::::::::::: -->
191 <!ENTITY % character.content "ch.apos | ch.nbsp | ch.iexcl | ch.cent | ch.pound | ch.curren | ch.yen | ch.brvbar | ch.sect | ch.uml | ch.copy | ch.ordf | ch.laquo | ch.not | ch.shy | ch.reg | ch.macr | ch.deg | ch.plusmn | ch.sup2 | ch.sup3 | ch.acute | ch.micro | ch.para | ch.middot | ch.cedil | ch.sup1 | ch.ordm | ch.raquo | ch.frac14 | ch.frac12 | ch.frac34 | ch.iquest | ch.Agrave | ch.Aacute | ch.Acirc | ch.Atilde | ch.Auml | ch.Aring | ch.AElig | ch.Ccedil | ch.Egrave | ch.Eacute | ch.Ecirc | ch.Euml | ch.Igrave | ch.Iacute | ch.Icirc | ch.Iuml | ch.ETH | ch.Ntilde | ch.Ograve | ch.Oacute | ch.Ocirc | ch.Otilde | ch.Ouml | ch.times | ch.Oslash | ch.Ugrave | ch.Uacute | ch.Ucirc | ch.Uuml | ch.Yacute | ch.THORN | ch.szlig | ch.agrave | ch.aacute | ch.acirc | ch.atilde | ch.auml | ch.aring | ch.aelig | ch.ccedil | ch.egrave | ch.eacute | ch.ecirc | ch.euml | ch.igrave | ch.iacute | ch.icirc | ch.iuml | ch.eth | ch.ntilde | ch.ograve | ch.oacute | ch.ocirc | ch.otilde | ch.ouml | ch.divide | ch.oslash | ch.ugrave | ch.uacute | ch.ucirc | ch.uuml | ch.yacute | ch.thorn | ch.yuml | ch.ampersand | ch.lsquot | ch.rsquot | ch.ldquot | ch.rdquot | ch.minus | ch.endash | ch.emdash | ch.ellips | ch.lellips | ch.blankline | ch.percent | ch.thinspace | ch.frac116 | ch.plus">
193 <!ENTITY % inline.content "#PCDATA | a | bookref | footref | em | strong | thought | foreign | quote | cite | code | line | br | typ | onomatopoeia | spell | item | %character.content;">
195 <!ENTITY % block.content "p | ul | ol | dl | table | blockquote | illustration | combat | choice | puzzle | deadend | hr | illref | poetry">
197 <!ENTITY % mixed.content "choose | signpost">
199 <!ENTITY % core.attributes "
201 xml:lang CDATA #IMPLIED
204 <!ENTITY % link.attributes "
209 <!ENTITY % cell.align.attributes "
210 align ( left | center | right | justify | char ) #IMPLIED
212 valign ( top | middle | bottom | baseline ) #IMPLIED
215 <!ENTITY % cell.scope.attributes "
216 rowspan CDATA #IMPLIED
217 colspan CDATA #IMPLIED
219 scope ( row | col | rowgroup | colgroup ) #IMPLIED
222 <!-- :::::::::::::::::::: Character Entities ::::::::::::::::::::: -->
224 <!ENTITY lt "&#60;"><!-- left angle bracket -->
225 <!ENTITY gt ">"> <!-- right angle bracket -->
226 <!ENTITY amp "&#38;"><!-- ampersand -->
227 <!ENTITY apos "'"> <!-- apostrophe = single quotation mark -->
228 <!ENTITY quot """> <!-- double quotation mark -->
232 It is the responsibility of the document to define relevant character
233 entities in its internal subset. See also Character Elements below.
237 <!-- ============================================================= -->
238 <!-- Hierarchical Elements -->
239 <!-- ============================================================= -->
242 <!ELEMENT gamebook ( meta, section+ )>
244 version CDATA #REQUIRED
245 xml:lang CDATA #IMPLIED
249 The "version" attribute represents the revision number of the gamebook
250 DTD. This allows gamebook processors to make decisions about the
251 suitability of the data.
253 The "xml:lang" attribute specifies the primary language of the
254 document. The data should conform to the IETF RFC1766.
256 http://www.ietf.org/rfc/rfc1766.txt
260 <gamebook version="0.12" xml:lang="en-UK">
261 <meta . . .> . . . </meta>
262 <section . . .> . . . </section>
266 <gamebook version="0.12" > . . . </gamebook>
270 <!-- :::::::::::::::::::::::: meta Element ::::::::::::::::::::::: -->
273 The children of the meta element are designed to directly translate to
274 the Dublin Core Element Set v1.1. For a description of each Dublin
275 Core element, visit the following URL:
277 (http://dublincore.org/documents/1999/07/02/dces/)
279 Although many Dublin Core elements will probably never have any real
280 relevance to gamebooks, all are included for completeness's sake.
282 [editor: add dc: namespace to isolate dublin core elements
283 http://dublincore.org/documents/2001/10/26/dcmi-namespace/ ]
285 Note: The "link" element doesn't correspond directly to any Dublin
286 Core element. It has been added here for required functionality.
289 <!ELEMENT meta ( title | creator | subject | description | publisher | contributor | date | type | format | identifier | source | language | relation | coverage | rights | link)*>
292 The "meta" element represents underlying information about the
293 document. It should contain any number of the Dublin Core 1.1
299 <title . . .> . . . </title>
300 <creator . . .> . . . </creator>
306 <!ELEMENT title ( %inline.content; | %mixed.content; )*>
311 <!ELEMENT creator ( %inline.content; | %block.content; | %mixed.content; )*>
314 relationship CDATA #IMPLIED
315 sort-name CDATA #IMPLIED
319 The "relationship" optional attribute defines the relationship of the creator
320 denoted by this element to the document. While the list of possible values is
321 not constrained by the DTD, the normative list is defined by the MARC Code List
322 for Relators <http://www.loc.gov/marc/relators/>.
324 The "sort-name" optional attribute contains the a name to be used for sorting.
328 <creator relationship="aut" sort-name="Dever, Joe">Joe Dever</creator>
332 <!ELEMENT subject ( %inline.content; | %block.content; | %mixed.content; )*>
337 <!ELEMENT description ( %inline.content; | %block.content; | %mixed.content; )*>
338 <!ATTLIST description
342 <!ELEMENT publisher ( %inline.content; | %block.content; | %mixed.content; )*>
347 <!ELEMENT contributor ( %inline.content; | %block.content; | %mixed.content; )*>
348 <!ATTLIST contributor
350 relationship CDATA #IMPLIED
351 sort-name CDATA #IMPLIED
355 The "relationship" optional attribute defines the relationship of the creator
356 denoted by this element to the document. While the list of possible values is
357 not constrained by the DTD, the normative list is defined by the MARC Code List
358 for Relators <http://www.loc.gov/marc/relators/>.
360 The "sort-name" optional attribute contains the a name to be used for sorting.
364 <contributor sort-name="Smith, Reader">Reader Smith</contributor>
368 <!ELEMENT date ( year, month, day )>
374 The "date" element has been extended beyond the specification made in
375 the Dublin Core. It should contain "year", "month" and "day" elements.
380 <year . . .> . . . </year>
381 <month . . .> . . . </month>
382 <day . . .> . . . </day>
387 <!ELEMENT year ( #PCDATA )>
390 The year should be specified in full digit numeric format.
398 <!ELEMENT month ( #PCDATA )>
401 The month should be specified in numeric format with January as "1",
402 February as "2", etc.
410 <!ELEMENT day ( #PCDATA )>
413 The "day" element specifies the day of the month in numeric format.
421 <!ELEMENT type ( %inline.content; | %mixed.content; )*>
426 <!ELEMENT format ( %inline.content; | %mixed.content; )*>
431 <!ELEMENT identifier ( %inline.content; | %mixed.content; )*>
436 <!ELEMENT source ( %inline.content; | %mixed.content; )*>
441 <!ELEMENT language ( %inline.content; | %mixed.content; )*>
446 <!ELEMENT relation ( %inline.content; | %mixed.content; )*>
451 <!ELEMENT coverage ( %inline.content; | %block.content; | %mixed.content; )*>
456 <!ELEMENT rights ( %inline.content; | %block.content; | %mixed.content; )*>
461 <!ELEMENT link EMPTY>
465 idrefs IDREFS #IMPLIED>
468 The "link" element has been added to the Dublin Core elements to
469 represent relationships to other parts of the document. The "idrefs"
470 attribute has been added to allow relationships that are held with
471 more than one part of the document.
475 <link class="next" idref="dedicate" />
477 <link class="friends" idrefs="dedicate cmbtrulz" />
481 <!-- ::::::::::::::::::::: section Element ::::::::::::::::::::::: -->
483 <!ELEMENT section ( meta, footnotes?, illustrations?, data )>
490 The "section" element represents one hierarchical level of data.
491 Section elements can be nested (inside the "data" element) in
492 order to create more complex data representations.
494 A "section" element can used as a linking element. The most useful way
495 to utilize this is to make it a named anchor and thus the target of a
496 "choice" or "puzzle" element.
501 <meta><title . . .> . . . </title></meta>
502 <data . . .> . . . </data>
503 <footnotes . . .> . . . </footnotes>
507 <meta><title . . .> . . . </title></meta>
510 <section id="dedication">
511 <meta><title . . .> . . . </title></meta>
512 <data . . .> . . . </data>
520 <!ELEMENT data ( %block.content; | %mixed.content; | section )*>
526 The "data" element contains the main data contained within
527 a section. Note that a nested section structure can be created by
528 including a "section" element within the content of the "data"
535 <combat . . .> . . . </combat>
540 <section . . .> . . . </section>
545 <!ELEMENT illustrations ( illustration | illgroup )*>
546 <!ATTLIST illustrations
551 The "illustrations" element represents a collection of illustrations.
552 The illustrations, or illustration groups, should be listed in the
553 order they appear in the book.
558 <illustration . . . />
559 <illgroup . . .>. . .</illgroup>
565 <!ELEMENT illgroup ( illustration )*>
573 The "illgroup" element represents a group of illustrations contained
574 within one section. It is used when individual links to the each
575 illustration from the illustrations index are not wanted.
579 <illgroup idref=". . .">
580 <illustration . . . />
581 <illustration . . . />
585 <illgroup idref=". . ." class="hidden">
586 <illustration . . . />
587 <illustration . . . />
593 <!ELEMENT footnotes ( footnote )*>
599 The "footnotes" element represents the collection of extra-textual
600 information contained within "footnote" elements.
605 <footnote . . .> . . . </footnote>
606 <footnote . . .> . . . </footnote>
612 <!ELEMENT footnote ( %block.content; | %mixed.content; )*>
619 The "footnote" element contains extra-textual information. It can be
620 used as a linking element and can thus be used to refer back to a
621 named anchor within the document.
626 <p . . .>This paragraph requires an appropriate footnote
627 <a id="reference" idref="footnote-reference" . . ./>.
632 <footnote id="footnote-reference" idref="reference">
633 <p . . .>This is the appropriate footnote.</p>
640 <!-- ============================================================= -->
641 <!-- Block Elements -->
642 <!-- ============================================================= -->
644 <!-- :::::::::::::::::::::::::: Lists :::::::::::::::::::::::::::: -->
646 <!ELEMENT ul ( li )*>
652 The "ul" represents an unordered list.
657 <li . . .> . . . </li>
658 <li . . .> . . . </li>
664 <!ELEMENT ol ( li )*>
671 The "ol" element represents an ordered list.
676 <li . . .> . . . First Item . . . </li>
677 <li . . .> . . . Second Item . . . </li>
681 The "start" attribute can be used to start a list from a number
686 <ol start="4"> . . . </ol>
690 <!ELEMENT li ( %inline.content; | %block.content; | %mixed.content; )*>
697 The "li" element is a generic list item used within both ordered and
698 unordered lists (i.e. "ol" and "ul" elements).
705 <li>another list item</li>
710 <li>first list item</li>
711 <li>second list item</li>
715 The "value" attribute can be used to restart numbering in ordered lists. It has no meaning when used in unordered lists.
718 <li>this item is numbered 1</li>
719 <li>this item is numbered 2</li>
720 <li value="10">this item is numbered 10</li>
721 <li>this item is numbered 11</li>
726 <!ELEMENT dl ( dt, dd? )*>
732 The "dl" element represents a list of terms and their definitions.
737 <dt . . .> . . . First Term . . . </dt>
738 <dd . . .> . . . First Term's Definition . . . </dd>
740 <dt . . .> . . . Second Term . . . </dt>
741 <dd . . .> . . . Second Term's Definition . . . </dd>
742 <dt . . .> . . . Third Term with No Definition . . . </dt>
747 <!ELEMENT dt ( %inline.content; | %mixed.content; )*>
753 The "dt" element represents a definition term within a definition
754 list. It should be immediately followed by its definitions contained
755 within "dd" elements.
761 <dt>Definition Term</dt>
762 <dd . . .> . . . Definition . . . </dd>
768 <!ELEMENT dd ( %inline.content; | %block.content; | %mixed.content; )*>
774 The "dd" element contains a definition.
778 <dt . . .> . . . Term to be defined . . . </dt>
779 <dd>Definition of the term.</dd>
783 <!-- :::::::::::::::::::::::::: Tables ::::::::::::::::::::::::::: -->
785 <!ELEMENT table ( caption?, colgroup*, thead?, tfoot?, ( tr+ | tbody+ ))>
787 summary CDATA #IMPLIED
792 The "table" element represents tabular data. It's data is organized
798 <tr . . .> . . . </tr>
799 <tr . . .> . . . </tr>
805 <!ELEMENT caption ( %inline.content; | %mixed.content; )*>
811 The "caption" element contains a brief description of the data
812 contained in the table and the structure of the table.
817 <caption>Random Number Table</caption>
823 <!ELEMENT colgroup EMPTY>
829 The "colgroup" element explicitly groups several columns of tabular data
830 together. The "span" attribute specifies the number of columns to be
831 grouped. This is primarily useful for non-visual user agents.
838 <colgroup span="13"/>
844 <!ELEMENT thead ( tr+ )>
850 The "thead" element contains rows of data designated as the table
851 header. It creates a rowgroup for the purposes of the "scope"
852 attribute in the "th" and "td" elements.
859 <tr . . .> . . . </tr>
867 <!ELEMENT tfoot ( tr+ )>
873 The "tfoot" element contains rows of data designated as the table
874 footer. It creates a rowgroup for the purposes of the "scope"
875 attribute in the "th" and "td" elements.
882 <tr . . .> . . . </tr>
890 <!ELEMENT tbody ( tr+ )>
896 The "tbody" element contains rows of data designated as the part
897 of the main table data. More than one "tbody" element is allowed per
898 "table" element. It creates a rowgroup for the purposes of the "scope"
899 attribute in the "th" and "td" elements.
906 <tr . . .> . . . </tr>
914 <!ELEMENT tr ( th | td )*>
920 The "tr" element contains a collection of "th" and "td" elements that
921 represent one row of a "table".
928 <th . . .> . . . </th>
929 <td . . .> . . . </td>
937 <!ELEMENT th ( %inline.content; | %mixed.content; )*>
940 %cell.align.attributes;
941 %cell.scope.attributes;
945 The "th" contains a table header used to label a particular row or
946 column of tabular data.
948 The "scope" attribute specifies to what extent the data of this header
949 applies. The "axis" attribute is a comma-separated list of categories
950 to which the element belongs.
957 <td . . .> . . . </td>
958 <td . . .> . . . </td>
964 <!ELEMENT td ( %inline.content; | %mixed.content; )*>
967 %cell.align.attributes;
968 %cell.scope.attributes;
972 The "td" element contains one cell of tabular data.
974 The "scope" attribute may be used in conjunction with a "td" element to
975 specify that though its data isn't considered header data, it functions
976 as a label for the data. For example, a character's name is a label for a row
977 of the character's statistics, but it is not a header.
989 <!-- :::::::::::::::::::::: Miscellaneous :::::::::::::::::::::::: -->
991 <!ELEMENT p ( %inline.content; | %mixed.content; )*>
997 The "p" element contains a paragraph.
1001 <p>This is a (short) paragraph.</p>
1005 <!ELEMENT blockquote ( %block.content; | %mixed.content; )*>
1006 <!ATTLIST blockquote
1011 The "blockquote" element contains a lengthy quotation which isn't
1012 contained within a paragraph.
1017 <p>There was once a Kai monk from Sommerlund . . .</p>
1022 <!ELEMENT poetry ( line+ )*>
1028 The "poetry" element contains a poem that is organized into a
1029 sequence of lines contained in "line" elements.
1034 <line>When the full moon shines o<ch.apos/>er the temple deep,</line>
1035 <line>A sacrifice will stir from sleep</line>
1036 <line>The legions of a long forgotten lord.</line>
1037 <line>When a fair royal maid on the altar dies,</line>
1038 <line>The dead of Maakengorge shall rise</line>
1039 <line>To claim their long-awaited reward.</line>
1044 <!ELEMENT combat ( enemy, enemy-attribute+ )>
1050 The "combat" element contains one combat represented by the enemy's
1051 name and attributes.
1056 <enemy . . .> . . . </enemy>
1057 <enemy-attribute . . .> . . . </enemy-attribute>
1058 <enemy-attribute . . .> . . . </enemy-attribute>
1064 <!ELEMENT enemy ( %inline.content; | %mixed.content; )*>
1070 The "enemy" element contains an enemy's name.
1076 <enemy>12-foot Giak</enemy>
1082 <!ELEMENT enemy-attribute ( #PCDATA )*>
1083 <!ATTLIST enemy-attribute
1088 The "enemy-attribute" element contains one particular attribute which
1095 <enemy-attribute>30</enemy-attribute>
1101 <!ELEMENT choice ( %inline.content; | %mixed.content; | link-text )*>
1108 The "choice" element contains the text describing a choice presented
1109 within a section. It's a linking element and therefore can link to
1110 the place to which the choice leads.
1112 The choice element can contain "link-text" elements which suggest text
1113 that should be used by the user agent to represent the hyperlink.
1117 <section id="section12" . . .> . . . </section>
1119 <choice idref="section12">If you would like to fight the 12-foot Giak,
1120 <link-text . . .> . . . turn to 12. . . . </link-text>
1125 <!ELEMENT link-text ( %inline.content; | %mixed.content; )*>
1131 The "link-text" element contains text which is suggested for use by
1132 hypertext user interfaces to represent one end of a hyperlink.
1138 <link-text>the unfortunately ubiquitous "Click Here!"</link-text>
1144 <!ELEMENT puzzle ( %inline.content; | %mixed.content; )*>
1148 idrefs IDREFS #IMPLIED
1152 The "puzzle" element contains the text describing the action of
1153 proceeding to the section that is the answer for a puzzle or riddle
1154 presented elsewhere within the section. It's a linking element and
1155 therefore can link to the place to which the correct answer to the
1156 puzzle leads. In the case that the puzzle has multiple solutions, use a
1157 space separated list of IDs in the "idrefs" attribute. This link
1158 information should not generally be presented to the reader.
1162 <section id="section12" . . .> . . . </section>
1164 <puzzle idref="section12">If you know the answer to her riddle, turn to
1165 the entry of that number.</puzzle>
1168 <section id="section23" . . .> . . . </section>
1170 <section id="section350" . . .> . . . </section>
1172 <puzzle idrefs="section23 section350">If you know only one of the two
1173 correct numbers that you need to open the lock, turn to the entry of
1174 that number.</puzzle>
1178 <!ELEMENT deadend ( %inline.content; | %mixed.content; )*>
1184 The "deadend" element contains the text describing the fact that an
1185 adventure has come to an end (e.g. the character has died).
1189 <deadend>Tragically, your life ends here.</deadend>
1193 <!ELEMENT illustration ( meta?, instance+ )>
1194 <!ATTLIST illustration
1201 The "illustration" element contains a set of alternate
1202 representations of a particular illustration.
1207 <meta> . . . </meta>
1208 <instance . . .> . . . </instance>
1209 <instance . . .> . . . </instance>
1215 <!ELEMENT instance ( %inline.content; | %block.content; | %mixed.content; )*>
1219 width CDATA #IMPLIED
1220 height CDATA #IMPLIED
1221 mime-type CDATA #IMPLIED
1222 originalwidth CDATA #IMPLIED
1228 The "instance" element describes one instance of an illustration.
1230 The "src" attribute is a URL for the data file for the illustration.
1232 The "width" and "height" attributes contain the dimensions of the
1235 The "mime-type" attribute can contain an appropriate label for the
1236 format of the illustration file (e.g. "image/png" or "image/jpeg").
1238 The "originalwidth" attribute contains the width of the illustration
1239 as it appears in the printed books. It is given including a unit
1242 The "posx" and "posx" attributes are hints for the positioning of the
1243 illustration when the PDF is generated.
1245 The "instance" element can contain block or inline content that
1246 is intended to replace graphical illustrations.
1250 <illustration . . .>
1252 <instance src="17.gif" width="386" height="532" type="image/gif" />
1253 <instance src="" width="" height="" type="text" >
1256 <instance class="pdf" src="sword.pdf" originalwidth="54mm" />
1262 <!ELEMENT illref EMPTY>
1270 The "illref" element is used to mark the location of an illustration.
1271 The actual illustration is declared elsewhere.
1273 Since the placement of a particular illustration may depend on the
1274 output format, one "illref" is required for each format.
1278 <illref idref="ill2" class="html"/>
1279 <illref idref="ill2" class="pdf"/>
1283 <!ELEMENT signpost ( %inline.content; | %block.content; | %mixed.content; )*>
1289 The "signpost" element contains the text of a sign or message that
1290 should be presented offset from surrounding text.
1294 <signpost>RENDALIM'S LABORATORY</signpost>
1304 The "hr" element designates a horizontal rule. Since this is a
1305 presentational tag, it should be used sparingly in cases where new
1306 logical divisions of the text begin which aren't given a unique
1315 <!ELEMENT choose ( when+, otherwise? )>
1318 test CDATA #REQUIRED
1320 <!ELEMENT when ( %inline.content; | %block.content; | %mixed.content; )*>
1323 value CDATA #IMPLIED
1325 <!ELEMENT otherwise ( %inline.content; | %block.content; | %mixed.content; )*>
1331 The "choose", "when", and "otherwise" elements work together to provide a
1332 simple way to include content based on conditions. The value to be tested
1333 is specified in the "choose" element with the "test" attribute. Only the first
1334 "when" element whose "value" attribute matches the value of the test is included. If none pass, the "otherwise" element is included.
1338 <choose test="linkable">
1340 <when value="true">included if linkable is true</when>
1341 <when value="false">included if linkable is false</when>
1342 <when value="3">included if linkable is 3</when>
1343 <otherwise>included if linkable is none of the above</otherwise>
1348 <!-- ============================================================= -->
1349 <!-- Inline Elements -->
1350 <!-- ============================================================= -->
1352 <!ELEMENT a ( %inline.content; | %mixed.content; )*>
1360 The "a" element is used to contain inline content that should be a
1361 hypertext anchor. The "a" element should not contain another linking
1362 element (e.g. "a", "bookref", "footref").
1364 The "href" attribute is added to allow a reference outside of the
1371 <a idref="section12" id="foo">Section 12</a>
1377 <!ELEMENT bookref ( %inline.content; | %mixed.content; )*>
1381 series CDATA #IMPLIED
1382 book CDATA #REQUIRED
1383 section CDATA #IMPLIED
1387 The "bookref" element is used to contain inline content that should be a
1388 hypertext anchor to another book.
1390 The "series" attribute is a tag that denotes the series of the book that
1391 the link points to. The attribute may be left out if the book is part of
1392 the same series as the one containing the link.
1394 The "book" attribute is a tag that denotes the book that the link points
1395 to. This is not necessarily a URL.
1397 The "section" attribute is a tag indicating which section to link to.
1398 This is not necessarily a URL. The attribute may be left out if no
1399 particular section is referred to.
1405 <bookref series="lw" book="11tpot" section="sect33">
1406 The Prisoners of Time: Section 33
1413 <bookref book="04wotw">Book 4</bookref>
1419 <!ELEMENT footref ( %inline.content; | %mixed.content; )*>
1426 The "footref" element is used to indicate the position of a reference
1427 to a "footnote" element. It should normally not contain any text.
1433 You lose 3EP.<footref id="footref1" idref="footnote1"/>
1439 <!ELEMENT em ( %inline.content; | %mixed.content; )*>
1445 The "em" element contains text that should be emphasized. Although not
1446 part of the DTD and therefore not guaranteed or required to be so, the
1447 text should be typeset with an italic font.
1451 <em>You are being attacked!</em>
1457 <!ELEMENT strong ( %inline.content; | %mixed.content; )*>
1463 The "strong" element contains text that should be emphasized. Although
1464 not part of the DTD and therefore not guaranteed or required to be so,
1465 the text should be typeset with a bold font weight.
1469 <strong>If</strong> you have the Talisman of Supreme Obscurity,
1475 <!ELEMENT thought ( %inline.content; | %mixed.content; )*>
1481 The "thought" element contains text that is the character's thoughts or is
1482 an overheard thought. Although not part of the DTD and therefore not
1483 guaranteed or required to be so, the text should be typeset with an italic
1488 Lone Wolf heard the words <thought>Die Northlander!</strong> echo in
1495 <!ELEMENT foreign ( %inline.content; | %mixed.content; )*>
1501 The "foreign" element contains a phrase in a non-native language.
1502 Although not part of the DTD and therefore not guaranteed or required
1503 to be so, the text should be typeset with an italic font face.
1507 The Giak horde attacked <foreign>en masse</foreign>.
1513 <!ELEMENT quote ( %inline.content; | %mixed.content; )*>
1519 The "quote" element contains an inline quotation.
1523 <p . . .>The Giak yelped <quote . . .>Oww!</quote></p>
1527 <!ELEMENT cite ( %inline.content; | %mixed.content; )*>
1533 The "cite" element contains the title of a sited resource.
1539 <cite>Flight from the Dark</cite>
1545 <!ELEMENT code ( %inline.content; | %mixed.content; )*>
1551 The "code" element contains data that should be interpreted as literal
1552 input to a computer (e.g. email addresses and URIs).
1556 <code>http://www.projectaon.org/</code>
1560 <!ELEMENT line ( %inline.content; | %mixed.content; )*>
1566 The "line" element contains one logical line of data in, for example,
1567 a poem. Its use should be confined to documents such as poems that
1568 require a particular line structure.
1572 <line>When the full moon rises o'er the temple deep,</line>
1573 <line>A sacrifice will stir from sleep</line>
1574 <line>The legions of a long forgotten lord.</line>
1584 The "br" indicates a required line break. Its use is deprecated in favor
1585 of the "line" element.
1591 There once was a Kai monk from Sommerlund<br />
1592 Who always wore a pink cummerbund<br />
1598 <!ELEMENT typ ( #PCDATA )>
1604 The "typ" element is used to denote purely typographical markup. For
1605 example, bold font face, italics, and smaller font are purely of
1606 typographical concern. Take care to not use this in place of logical
1607 markup such as the "em" element when it is more appropriate.
1611 The <typ class="bold">Project Aon</a> volunteers.
1615 <!ELEMENT onomatopoeia ( #PCDATA )>
1616 <!ATTLIST onomatopoeia
1621 The "onomatopoeia" element is used to denote words that imitate a
1622 sound (e.g., "whoosh", "bang").
1626 The <onomatopoeia>clang</onomatopoeia> of the bell is deafening.
1630 <!ELEMENT spell ( #PCDATA )>
1636 The "spell" element contains the name of a magic spell.
1640 Having had no success with his female peers, the acolyte learned the
1641 forbidden <spell>Attract Opposite Gender</spell> spell.
1645 <!ELEMENT item ( #PCDATA )>
1651 The "item" element contains the name of an item that the reader can
1652 pick up or interact with.
1656 Her <item>Sword</a> lay just out of reach.
1660 <!-- ============================================================= -->
1661 <!-- Character Elements -->
1662 <!-- ============================================================= -->
1665 The character elments provide a hook to specify a character without
1666 specifying the exact representation in target formats. The exact
1667 representation used is the responsibility of the processor (e.g XSLT
1670 Portions Copyright International Organization for Standardization 1986
1671 Permission to copy in any form is granted for use with conforming SGML
1672 systems and applications as defined in ISO 8879, provided this notice
1673 is included in all copies.
1677 <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
1678 <!ELEMENT ch.apos EMPTY><!ATTLIST ch.apos %core.attributes;>
1680 <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
1681 <!ELEMENT ch.nbsp EMPTY><!ATTLIST ch.nbsp %core.attributes;>
1683 <!-- inverted exclamation mark, U+00A1 ISOnum -->
1684 <!ELEMENT ch.iexcl EMPTY><!ATTLIST ch.iexcl %core.attributes;>
1686 <!-- cent sign, U+00A2 ISOnum -->
1687 <!ELEMENT ch.cent EMPTY><!ATTLIST ch.cent %core.attributes;>
1689 <!-- pound sign, U+00A3 ISOnum -->
1690 <!ELEMENT ch.pound EMPTY><!ATTLIST ch.pound %core.attributes;>
1692 <!-- currency sign, U+00A4 ISOnum -->
1693 <!ELEMENT ch.curren EMPTY><!ATTLIST ch.curren %core.attributes;>
1695 <!-- yen sign = yuan sign, U+00A5 ISOnum -->
1696 <!ELEMENT ch.yen EMPTY><!ATTLIST ch.yen %core.attributes;>
1698 <!-- broken bar = broken vertical bar, U+00A6 ISOnum -->
1699 <!ELEMENT ch.brvbar EMPTY><!ATTLIST ch.brvbar %core.attributes;>
1701 <!-- section sign, U+00A7 ISOnum -->
1702 <!ELEMENT ch.sect EMPTY><!ATTLIST ch.sect %core.attributes;>
1704 <!-- diaeresis = spacing diaeresis, U+00A8 ISOdia -->
1705 <!ELEMENT ch.uml EMPTY><!ATTLIST ch.uml %core.attributes;>
1707 <!-- copyright sign, U+00A9 ISOnum -->
1708 <!ELEMENT ch.copy EMPTY><!ATTLIST ch.copy %core.attributes;>
1710 <!-- feminine ordinal indicator, U+00AA ISOnum -->
1711 <!ELEMENT ch.ordf EMPTY><!ATTLIST ch.ordf %core.attributes;>
1713 <!-- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum -->
1714 <!ELEMENT ch.laquo EMPTY><!ATTLIST ch.laquo %core.attributes;>
1716 <!-- not sign, U+00AC ISOnum -->
1717 <!ELEMENT ch.not EMPTY><!ATTLIST ch.not %core.attributes;>
1719 <!-- soft hyphen = discretionary hyphen, U+00AD ISOnum -->
1720 <!ELEMENT ch.shy EMPTY><!ATTLIST ch.shy %core.attributes;>
1722 <!-- registered sign = registered trade mark sign, U+00AE ISOnum -->
1723 <!ELEMENT ch.reg EMPTY><!ATTLIST ch.reg %core.attributes;>
1725 <!-- macron = spacing macron = overline = APL overbar, U+00AF ISOdia -->
1726 <!ELEMENT ch.macr EMPTY><!ATTLIST ch.macr %core.attributes;>
1728 <!-- degree sign, U+00B0 ISOnum -->
1729 <!ELEMENT ch.deg EMPTY><!ATTLIST ch.deg %core.attributes;>
1731 <!-- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum -->
1732 <!ELEMENT ch.plusmn EMPTY><!ATTLIST ch.plusmn %core.attributes;>
1734 <!-- superscript two = superscript digit two = squared, U+00B2 ISOnum -->
1735 <!ELEMENT ch.sup2 EMPTY><!ATTLIST ch.sup2 %core.attributes;>
1737 <!-- superscript three = superscript digit three = cubed, U+00B3 ISOnum -->
1738 <!ELEMENT ch.sup3 EMPTY><!ATTLIST ch.sup3 %core.attributes;>
1740 <!-- acute accent = spacing acute, U+00B4 ISOdia -->
1741 <!ELEMENT ch.acute EMPTY><!ATTLIST ch.acute %core.attributes;>
1743 <!-- micro sign, U+00B5 ISOnum -->
1744 <!ELEMENT ch.micro EMPTY><!ATTLIST ch.micro %core.attributes;>
1746 <!-- pilcrow sign = paragraph sign, U+00B6 ISOnum -->
1747 <!ELEMENT ch.para EMPTY><!ATTLIST ch.para %core.attributes;>
1749 <!-- middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum -->
1750 <!ELEMENT ch.middot EMPTY><!ATTLIST ch.middot %core.attributes;>
1752 <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
1753 <!ELEMENT ch.cedil EMPTY><!ATTLIST ch.cedil %core.attributes;>
1755 <!-- superscript one = superscript digit one, U+00B9 ISOnum -->
1756 <!ELEMENT ch.sup1 EMPTY><!ATTLIST ch.sup1 %core.attributes;>
1758 <!-- masculine ordinal indicator, U+00BA ISOnum -->
1759 <!ELEMENT ch.ordm EMPTY><!ATTLIST ch.ordm %core.attributes;>
1761 <!-- right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum -->
1762 <!ELEMENT ch.raquo EMPTY><!ATTLIST ch.raquo %core.attributes;>
1764 <!-- vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum -->
1765 <!ELEMENT ch.frac14 EMPTY><!ATTLIST ch.frac14 %core.attributes;>
1767 <!-- vulgar fraction one half = fraction one half, U+00BD ISOnum -->
1768 <!ELEMENT ch.frac12 EMPTY><!ATTLIST ch.frac12 %core.attributes;>
1770 <!-- vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum -->
1771 <!ELEMENT ch.frac34 EMPTY><!ATTLIST ch.frac34 %core.attributes;>
1773 <!-- inverted question mark = turned question mark, U+00BF ISOnum -->
1774 <!ELEMENT ch.iquest EMPTY><!ATTLIST ch.iquest %core.attributes;>
1776 <!-- latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1 -->
1777 <!ELEMENT ch.Agrave EMPTY><!ATTLIST ch.Agrave %core.attributes;>
1779 <!-- latin capital letter A with acute, U+00C1 ISOlat1 -->
1780 <!ELEMENT ch.Aacute EMPTY><!ATTLIST ch.Aacute %core.attributes;>
1782 <!-- latin capital letter A with circumflex, U+00C2 ISOlat1 -->
1783 <!ELEMENT ch.Acirc EMPTY><!ATTLIST ch.Acirc %core.attributes;>
1785 <!-- latin capital letter A with tilde, U+00C3 ISOlat1 -->
1786 <!ELEMENT ch.Atilde EMPTY><!ATTLIST ch.Atilde %core.attributes;>
1788 <!-- latin capital letter A with diaeresis, U+00C4 ISOlat1 -->
1789 <!ELEMENT ch.Auml EMPTY><!ATTLIST ch.Auml %core.attributes;>
1791 <!-- latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1 -->
1792 <!ELEMENT ch.Aring EMPTY><!ATTLIST ch.Aring %core.attributes;>
1794 <!-- latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1 -->
1795 <!ELEMENT ch.AElig EMPTY><!ATTLIST ch.AElig %core.attributes;>
1797 <!-- latin capital letter C with cedilla, U+00C7 ISOlat1 -->
1798 <!ELEMENT ch.Ccedil EMPTY><!ATTLIST ch.Ccedil %core.attributes;>
1800 <!-- latin capital letter E with grave, U+00C8 ISOlat1 -->
1801 <!ELEMENT ch.Egrave EMPTY><!ATTLIST ch.Egrave %core.attributes;>
1803 <!-- latin capital letter E with acute, U+00C9 ISOlat1 -->
1804 <!ELEMENT ch.Eacute EMPTY><!ATTLIST ch.Eacute %core.attributes;>
1806 <!-- latin capital letter E with circumflex, U+00CA ISOlat1 -->
1807 <!ELEMENT ch.Ecirc EMPTY><!ATTLIST ch.Ecirc %core.attributes;>
1809 <!-- latin capital letter E with diaeresis, U+00CB ISOlat1 -->
1810 <!ELEMENT ch.Euml EMPTY><!ATTLIST ch.Euml %core.attributes;>
1812 <!-- latin capital letter I with grave, U+00CC ISOlat1 -->
1813 <!ELEMENT ch.Igrave EMPTY><!ATTLIST ch.Igrave %core.attributes;>
1815 <!-- latin capital letter I with acute, U+00CD ISOlat1 -->
1816 <!ELEMENT ch.Iacute EMPTY><!ATTLIST ch.Iacute %core.attributes;>
1818 <!-- latin capital letter I with circumflex, U+00CE ISOlat1 -->
1819 <!ELEMENT ch.Icirc EMPTY><!ATTLIST ch.Icirc %core.attributes;>
1821 <!-- latin capital letter I with diaeresis, U+00CF ISOlat1 -->
1822 <!ELEMENT ch.Iuml EMPTY><!ATTLIST ch.Iuml %core.attributes;>
1824 <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
1825 <!ELEMENT ch.ETH EMPTY><!ATTLIST ch.ETH %core.attributes;>
1827 <!-- latin capital letter N with tilde, U+00D1 ISOlat1 -->
1828 <!ELEMENT ch.Ntilde EMPTY><!ATTLIST ch.Ntilde %core.attributes;>
1830 <!-- latin capital letter O with grave, U+00D2 ISOlat1 -->
1831 <!ELEMENT ch.Ograve EMPTY><!ATTLIST ch.Ograve %core.attributes;>
1833 <!-- latin capital letter O with acute, U+00D3 ISOlat1 -->
1834 <!ELEMENT ch.Oacute EMPTY><!ATTLIST ch.Oacute %core.attributes;>
1836 <!-- latin capital letter O with circumflex, U+00D4 ISOlat1 -->
1837 <!ELEMENT ch.Ocirc EMPTY><!ATTLIST ch.Ocirc %core.attributes;>
1839 <!-- latin capital letter O with tilde, U+00D5 ISOlat1 -->
1840 <!ELEMENT ch.Otilde EMPTY><!ATTLIST ch.Otilde %core.attributes;>
1842 <!-- latin capital letter O with diaeresis, U+00D6 ISOlat1 -->
1843 <!ELEMENT ch.Ouml EMPTY><!ATTLIST ch.Ouml %core.attributes;>
1845 <!-- multiplication sign, U+00D7 ISOnum -->
1846 <!ELEMENT ch.times EMPTY><!ATTLIST ch.times %core.attributes;>
1848 <!-- latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1 -->
1849 <!ELEMENT ch.Oslash EMPTY><!ATTLIST ch.Oslash %core.attributes;>
1851 <!-- latin capital letter U with grave, U+00D9 ISOlat1 -->
1852 <!ELEMENT ch.Ugrave EMPTY><!ATTLIST ch.Ugrave %core.attributes;>
1854 <!-- latin capital letter U with acute, U+00DA ISOlat1 -->
1855 <!ELEMENT ch.Uacute EMPTY><!ATTLIST ch.Uacute %core.attributes;>
1857 <!-- latin capital letter U with circumflex, U+00DB ISOlat1 -->
1858 <!ELEMENT ch.Ucirc EMPTY><!ATTLIST ch.Ucirc %core.attributes;>
1860 <!-- latin capital letter U with diaeresis, U+00DC ISOlat1 -->
1861 <!ELEMENT ch.Uuml EMPTY><!ATTLIST ch.Uuml %core.attributes;>
1863 <!-- latin capital letter Y with acute, U+00DD ISOlat1 -->
1864 <!ELEMENT ch.Yacute EMPTY><!ATTLIST ch.Yacute %core.attributes;>
1866 <!-- latin capital letter THORN, U+00DE ISOlat1 -->
1867 <!ELEMENT ch.THORN EMPTY><!ATTLIST ch.THORN %core.attributes;>
1869 <!-- latin small letter sharp s = ess-zed, U+00DF ISOlat1 -->
1870 <!ELEMENT ch.szlig EMPTY><!ATTLIST ch.szlig %core.attributes;>
1872 <!-- latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1 -->
1873 <!ELEMENT ch.agrave EMPTY><!ATTLIST ch.agrave %core.attributes;>
1875 <!-- latin small letter a with acute, U+00E1 ISOlat1 -->
1876 <!ELEMENT ch.aacute EMPTY><!ATTLIST ch.aacute %core.attributes;>
1878 <!-- latin small letter a with circumflex, U+00E2 ISOlat1 -->
1879 <!ELEMENT ch.acirc EMPTY><!ATTLIST ch.acirc %core.attributes;>
1881 <!-- latin small letter a with tilde, U+00E3 ISOlat1 -->
1882 <!ELEMENT ch.atilde EMPTY><!ATTLIST ch.atilde %core.attributes;>
1884 <!-- latin small letter a with diaeresis, U+00E4 ISOlat1 -->
1885 <!ELEMENT ch.auml EMPTY><!ATTLIST ch.auml %core.attributes;>
1887 <!-- latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1 -->
1888 <!ELEMENT ch.aring EMPTY><!ATTLIST ch.aring %core.attributes;>
1890 <!-- latin small letter ae = latin small ligature ae, U+00E6 ISOlat1 -->
1891 <!ELEMENT ch.aelig EMPTY><!ATTLIST ch.aelig %core.attributes;>
1893 <!-- latin small letter c with cedilla, U+00E7 ISOlat1 -->
1894 <!ELEMENT ch.ccedil EMPTY><!ATTLIST ch.ccedil %core.attributes;>
1896 <!-- latin small letter e with grave, U+00E8 ISOlat1 -->
1897 <!ELEMENT ch.egrave EMPTY><!ATTLIST ch.egrave %core.attributes;>
1899 <!-- latin small letter e with acute, U+00E9 ISOlat1 -->
1900 <!ELEMENT ch.eacute EMPTY><!ATTLIST ch.eacute %core.attributes;>
1902 <!-- latin small letter e with circumflex, U+00EA ISOlat1 -->
1903 <!ELEMENT ch.ecirc EMPTY><!ATTLIST ch.ecirc %core.attributes;>
1905 <!-- latin small letter e with diaeresis, U+00EB ISOlat1 -->
1906 <!ELEMENT ch.euml EMPTY><!ATTLIST ch.euml %core.attributes;>
1908 <!-- latin small letter i with grave, U+00EC ISOlat1 -->
1909 <!ELEMENT ch.igrave EMPTY><!ATTLIST ch.igrave %core.attributes;>
1911 <!-- latin small letter i with acute, U+00ED ISOlat1 -->
1912 <!ELEMENT ch.iacute EMPTY><!ATTLIST ch.iacute %core.attributes;>
1914 <!-- latin small letter i with circumflex, U+00EE ISOlat1 -->
1915 <!ELEMENT ch.icirc EMPTY><!ATTLIST ch.icirc %core.attributes;>
1917 <!-- latin small letter i with diaeresis, U+00EF ISOlat1 -->
1918 <!ELEMENT ch.iuml EMPTY><!ATTLIST ch.iuml %core.attributes;>
1920 <!-- latin small letter eth, U+00F0 ISOlat1 -->
1921 <!ELEMENT ch.eth EMPTY><!ATTLIST ch.eth %core.attributes;>
1923 <!-- latin small letter n with tilde, U+00F1 ISOlat1 -->
1924 <!ELEMENT ch.ntilde EMPTY><!ATTLIST ch.ntilde %core.attributes;>
1926 <!-- latin small letter o with grave, U+00F2 ISOlat1 -->
1927 <!ELEMENT ch.ograve EMPTY><!ATTLIST ch.ograve %core.attributes;>
1929 <!-- latin small letter o with acute, U+00F3 ISOlat1 -->
1930 <!ELEMENT ch.oacute EMPTY><!ATTLIST ch.oacute %core.attributes;>
1932 <!-- latin small letter o with circumflex, U+00F4 ISOlat1 -->
1933 <!ELEMENT ch.ocirc EMPTY><!ATTLIST ch.ocirc %core.attributes;>
1935 <!-- latin small letter o with tilde, U+00F5 ISOlat1 -->
1936 <!ELEMENT ch.otilde EMPTY><!ATTLIST ch.otilde %core.attributes;>
1938 <!-- latin small letter o with diaeresis, U+00F6 ISOlat1 -->
1939 <!ELEMENT ch.ouml EMPTY><!ATTLIST ch.ouml %core.attributes;>
1941 <!-- division sign, U+00F7 ISOnum -->
1942 <!ELEMENT ch.divide EMPTY><!ATTLIST ch.divide %core.attributes;>
1944 <!-- latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1 -->
1945 <!ELEMENT ch.oslash EMPTY><!ATTLIST ch.oslash %core.attributes;>
1947 <!-- latin small letter u with grave, U+00F9 ISOlat1 -->
1948 <!ELEMENT ch.ugrave EMPTY><!ATTLIST ch.ugrave %core.attributes;>
1950 <!-- latin small letter u with acute, U+00FA ISOlat1 -->
1951 <!ELEMENT ch.uacute EMPTY><!ATTLIST ch.uacute %core.attributes;>
1953 <!-- latin small letter u with circumflex, U+00FB ISOlat1 -->
1954 <!ELEMENT ch.ucirc EMPTY><!ATTLIST ch.ucirc %core.attributes;>
1956 <!-- latin small letter u with diaeresis, U+00FC ISOlat1 -->
1957 <!ELEMENT ch.uuml EMPTY><!ATTLIST ch.uuml %core.attributes;>
1959 <!-- latin small letter y with acute, U+00FD ISOlat1 -->
1960 <!ELEMENT ch.yacute EMPTY><!ATTLIST ch.yacute %core.attributes;>
1962 <!-- latin small letter thorn, U+00FE ISOlat1 -->
1963 <!ELEMENT ch.thorn EMPTY><!ATTLIST ch.thorn %core.attributes;>
1965 <!-- latin small letter y with diaeresis, U+00FF ISOlat1 -->
1966 <!ELEMENT ch.yuml EMPTY><!ATTLIST ch.yuml %core.attributes;>
1969 <!-- ::::::::::::::::::::: Special Characters :::::::::::::::::::: -->
1972 <!ELEMENT ch.ampersand EMPTY><!ATTLIST ch.ampersand %core.attributes;>
1974 <!-- opening left quotation mark -->
1975 <!ELEMENT ch.lsquot EMPTY><!ATTLIST ch.lsquot %core.attributes;>
1977 <!-- closing right quotation mark -->
1978 <!ELEMENT ch.rsquot EMPTY><!ATTLIST ch.rsquot %core.attributes;>
1980 <!-- opening left double quotation mark -->
1981 <!ELEMENT ch.ldquot EMPTY><!ATTLIST ch.ldquot %core.attributes;>
1983 <!-- closing right double quotation mark -->
1984 <!ELEMENT ch.rdquot EMPTY><!ATTLIST ch.rdquot %core.attributes;>
1986 <!-- mathematical minus -->
1987 <!ELEMENT ch.minus EMPTY><!ATTLIST ch.minus %core.attributes;>
1990 <!ELEMENT ch.endash EMPTY><!ATTLIST ch.endash %core.attributes;>
1993 <!ELEMENT ch.emdash EMPTY><!ATTLIST ch.emdash %core.attributes;>
1996 <!ELEMENT ch.ellips EMPTY><!ATTLIST ch.ellips %core.attributes;>
1998 <!-- left ellipsis, used at the beginning of edited material -->
1999 <!ELEMENT ch.lellips EMPTY><!ATTLIST ch.lellips %core.attributes;>
2001 <!-- blank line to be filled in -->
2002 <!ELEMENT ch.blankline EMPTY><!ATTLIST ch.blankline %core.attributes;>
2004 <!-- percent sign -->
2005 <!ELEMENT ch.percent EMPTY><!ATTLIST ch.percent %core.attributes;>
2007 <!-- small horizontal space for use between adjacent quotation marks - added mainly for LaTeX's sake -->
2008 <!ELEMENT ch.thinspace EMPTY><!ATTLIST ch.thinspace %core.attributes;>
2010 <!-- vulgar fraction one sixteenth = fraction on sixteenth -->
2011 <!ELEMENT ch.frac116 EMPTY><!ATTLIST ch.frac116 %core.attributes;>
2013 <!-- mathematical plus -->
2014 <!ELEMENT ch.plus EMPTY><!ATTLIST ch.plus %core.attributes;>
2016 <!-- ============================================================= -->
2018 <!-- ============================================================= -->
2020 <!-- :::::::::::::: Valid Gamebook Document Example :::::::::::::: -->
2022 This document is not intended to document current practice in Project
2023 Aon. It is merely here to demonstrate the concepts of the Gamebook
2024 DTD. For current practice, please refer to published XML files.
2029 <?xml version="1.0" encoding="iso-8859-1"?>
2030 <!DOCTYPE gamebook SYSTEM "gamebook.dtd">
2032 <gamebook version="0.12" xml:lang="en-UK">
2035 <title>Flight from the Dark</title>
2036 <creator>Joe Dever and Gary Chalk</creator>
2037 <publisher>Project Aon</publisher>
2038 <date><year>2001</year><month>10</month><day>24</day></date>
2039 <rights>Copyright <ch.copy/> 1984 Joe Dever and Gary Chalk.</rights>
2042 <section id="section1">
2043 <meta><title>1</title></meta>
2045 <p>You must make haste for you sense it is not safe to linger by the smoking remains of the ruined monastery. The black-winged beasts could return at any moment. You must set out for the Sommerlund capital of Holmgard and tell the King the terrible news of the massacre: that the whole <ch.eacute/>lite of Kai warriors, save yourself, have been slaughtered. Without the Kai Lords to lead her armies, Sommerlund will be at the mercy of their ancient enemy, the Darklords.</p>
2046 <p>Fighting back tears, you bid farewell to your dead kinsmen. Silently, you promise that their deaths will be avenged. You turn away from the ruins and carefully descend the steep track.</p>
2047 <p>At the foot of the hill, the path splits into two directions, both leading into a large wood.</p>
2049 <choice idref="section85">If you wish to take the right path into the wood, <link-text>turn to 85</link-text>.</choice>
2050 <choice idref="section275">If you wish to follow the left track, <link-text>turn to 275</link-text>.</choice>
2051 <choice idref="section141">If you wish to use your Kai Discipline of Sixth Sense, <link-text>turn to 141</link-text>.</choice>
2054 <footnote><p>Later books use <quote>Sommlending</quote> as the possessive adjective for Sommerlund, contrary to the use of the word <quote>Sommerlund</quote> in the third sentence. This is probably not a typo, but a reflection of Joe Dever<ch.apos/>s later expansion of the vocabulary of Magnamund.</p></footnote>
2058 <section id="section17">
2059 <meta><title>17</title></meta>
2061 <p>You raise your weapon to strike at the beast as its razor-fanged mouth snaps shut just inches from your head. Buffeted by the beating of its wings you find it difficult to stand.</p>
2064 <instance src="1.gif" width="386" height="532" mime-type="image/gif" />
2067 <p>Deduct 1 point from your <typ class="attribute">COMBAT SKILL</typ> and fight the Kraan.</p>
2070 <enemy>Kraan:</enemy>
2071 <enemy-attribute>16</enemy-attribute>
2072 <enemy-attribute>24</enemy-attribute>
2075 <p>If you kill the creature, you quickly descend the far side of the hill to avoid the Giaks.</p>
2076 <p>Pick a number from the Random Number Table.</p>
2078 <choice idref="section53">If you pick 0, <link-text>turn to 53</link-text>.</choice>
2079 <choice idref="section274">If you pick 1<ch.endash/>2, <link-text>turn to 274</link-text>.</choice>
2080 <choice idref="section316">If you pick 3<ch.endash/>9, <link-text>turn to 316</link-text>.</choice>
2084 <section id="section53">
2085 <meta><title>53</title></meta>
2089 <section id="section85">
2090 <meta><title>85</title></meta>
2094 <section id="section141">
2095 <meta><title>141</title></meta>
2099 <section id="section274">
2100 <meta><title>274</title></meta>
2104 <section id="section275">
2105 <meta><title>275</title></meta>
2109 <section id="section316">
2110 <meta><title>316</title></meta>