1 <!-- ============================================================= -->
2 <!-- Gamebook Document Type Definition v0.12 -->
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
16 25 March 2006 (version 0.12.0)
17 * Added "illref", "illustrations" and "illgroup". Still backwards
20 26 December 2005 (version 0.11.4)
21 * Added link.attributes and the optional "series" attribute to
22 "bookref", and fleshed out the "bookref" and "footref"
25 5 December 2005 (version 0.11.3)
26 * Corrected ATTLISTs of character elements
27 * Added "ch.apos", "ch.frac116", and "ch.plus" elements
29 9 April 2005 (version 0.11.2)
30 * Added the following inline elements: "bookref", "footref".
31 * Added the character elements to replace the use of character
32 entities (except in attributes). These allow a processor (e.g.
33 a XSL transformation) to decide how characters should be
34 represented, not this DTD.
36 18 April 2003 (version 0.11.1)
37 * Added the following inline elements: "onomatopoeia", "spell",
40 27 January 2003 (version 0.11.0)
41 * Moved the optional "footnotes" element between the "meta" and
44 10 January 2003 (version 0.10.4)
45 * Removed the "inline.content" entity from the declaration of the
46 contents of the "blockquote" element. This will break some existing
49 7 January 2003 (version 0.10.3)
50 * Made the "src", "width", and "height" attributes of the "instance"
53 4 January 2003 (version 0.10.2)
54 * Moved the specialized character entity definitions into module
57 5 October 2002 (version 0.10.1)
58 * Added the "lellips" and "minus" entities and changed the definition
59 of the "emdash" entity.
61 5 September 2002 (version 0.10.0)
62 * Added the "quote" element.
64 31 August 2002 (version 0.9.1)
65 * Added the "xml:lang" attribute to the "core.attributes" entity.
66 Although this could be used for most elements, it is primarily
67 aimed at the "foreign" element.
69 6 July 2002 (version 0.9)
70 * Replaced the "caption" element and the "illustrator" attribute with
71 the use of the "meta" element.
72 * Renamed the "illustration-instance" element to simply "instance".
73 * Removed the "character-attribute" element.
74 * Added the "typ" element for typographical markup.
75 * Removed the "shortname" attribute.
77 1 June 2002 (version 0.8.3)
78 * Removed the "marker" attribute from the "footnote" element.
80 29 April 2002 (vesion 0.8.2)
81 * Changed the content of the "enemy" element from "#PCDATA" to
84 4 April 2002 (version 0.8.1)
85 * Added the "thinspace" entity
87 3 April 2002 (version 0.8.0)
88 * Added the "thought" element.
89 * Added the "foreign" element.
91 15 March 2002 (version 0.7.0)
92 * Changed the name of the "illustration-set" element to "illustration"
93 and changed the name of the "illustration" element to
94 "illustration-instance".
95 * Made many minor changes to bring the DTD up to current practice.
97 11 May 2001 (version 0.6.0)
98 * Removed the "publication-date" element.
100 5 May 2001 (version 0.5.0)
101 * Added facilities for transformation to LaTeX - mainly appropriate
103 * Added the "marker" attribute to the "footnote" element.
105 1 May 2001 (version 0.4.0)
107 * Added the "link" element to the set of allowable "meta" elements.
108 Although not a Dublin Core meta-data element, it's functionality
109 adds a lot to the document.
111 30 April 2001 (version 0.3.0)
113 * Changed the basic orgranization of the sections by allowing them to
114 have their own meta section instead of a "section-title" element.
115 * Changed the name of the "section-data" element to simply "data".
117 17 April 2001 (version 0.2.0)
119 * Changed some of the block and inline elements in order to make them
122 14 April 2001 (version 0.1.0)
126 <!-- ============================================================= -->
128 <!-- ============================================================= -->
129 <!-- Table of Contents -->
130 <!-- ============================================================= -->
136 B. Character Entities
137 II. Hierarchical Elements
140 V. Character Elements
143 A. Valid Document Example
147 <!-- ============================================================= -->
149 <!-- ============================================================= -->
151 <!-- ::::::::::::::::::::: General Entities :::::::::::::::::::::: -->
153 <!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">
155 <!ENTITY % inline.content "#PCDATA | a | bookref | footref | em | strong | thought | foreign | quote | cite | code | br | typ | onomatopoeia | spell | item | %character.content;">
157 <!ENTITY % block.content "p | ul | ol | dl | table | blockquote | illustration | combat | choice | signpost | hr | illref">
159 <!ENTITY % core.attributes "
161 xml:lang CDATA #IMPLIED
164 <!ENTITY % link.attributes "
169 <!ENTITY % cell.align.attributes "
170 align ( left | center | right | justify | char ) #IMPLIED
172 valign ( top | middle | bottom | baseline ) #IMPLIED
175 <!-- :::::::::::::::::::: Character Entities ::::::::::::::::::::: -->
177 <!ENTITY lt "&#60;"><!-- left angle bracket -->
178 <!ENTITY gt ">"> <!-- right angle bracket -->
179 <!ENTITY amp "&#38;"><!-- ampersand -->
180 <!ENTITY apos "'"> <!-- apostrophe = single quotation mark -->
181 <!ENTITY quot """> <!-- double quotation mark -->
185 It is the responsibility of the document to define relevant character
186 entities in its internal subset. See also Character Elements below.
190 <!-- ============================================================= -->
191 <!-- Hierarchical Elements -->
192 <!-- ============================================================= -->
195 <!ELEMENT gamebook ( meta, section+ )>
197 version CDATA #REQUIRED
198 xml:lang CDATA #IMPLIED
202 The "version" attribute represents the revision number of the gamebook
203 DTD. This allows gamebook processors to make decisions about the
204 suitability of the data.
206 The "xml:lang" attribute specifies the primary language of the
207 document. The data should conform to the IETF RFC1766.
209 http://www.ietf.org/rfc/rfc1766.txt
213 <gamebook version="0.12" xml:lang="en-UK">
214 <meta . . .> . . . </meta>
215 <section . . .> . . . </section>
219 <gamebook version="0.12" > . . . </gamebook>
223 <!-- :::::::::::::::::::::::: meta Element ::::::::::::::::::::::: -->
226 The children of the meta element are designed to directly translate to
227 the Dublin Core Element Set v1.1. For a description of each Dublin
228 Core element, visit the following URL:
230 (http://dublincore.org/documents/1999/07/02/dces/)
232 Although many Dublin Core elements will probably never have any real
233 relevance to gamebooks, all are included for completeness's sake.
235 [editor: add dc: namespace to isolate dublin core elements
236 http://dublincore.org/documents/2001/10/26/dcmi-namespace/ ]
238 Note: The "link" element doesn't correspond directly to any Dublin
239 Core element. It has been added here for required functionality.
242 <!ELEMENT meta ( title | creator | subject | description | publisher | contributor | date | type | format | identifier | source | language | relation | coverage | rights | link)*>
245 The "meta" element represents underlying information about the
246 document. It should contain any number of the Dublin Core 1.1
252 <title . . .> . . . </title>
253 <creator . . .> . . . </creator>
259 <!ELEMENT title ( %inline.content; )*>
264 <!ELEMENT creator ( %inline.content; | %block.content; )*>
269 <!ELEMENT subject ( %inline.content; | %block.content; )*>
274 <!ELEMENT description ( %inline.content; | %block.content; )*>
275 <!ATTLIST description
279 <!ELEMENT publisher ( %inline.content; | %block.content; )*>
284 <!ELEMENT contributor ( %inline.content; | %block.content; )*>
285 <!ATTLIST contributor
289 <!ELEMENT date ( year, month, day )>
295 The "date" element has been extended beyond the specification made in
296 the Dublin Core. It should contain "year", "month" and "day" elements.
301 <year . . .> . . . </year>
302 <month . . .> . . . </month>
303 <day . . .> . . . </day>
308 <!ELEMENT year ( #PCDATA )>
311 The year should be specified in full digit numeric format.
319 <!ELEMENT month ( #PCDATA )>
322 The month should be specified in numeric format with January as "1",
323 February as "2", etc.
331 <!ELEMENT day ( #PCDATA )>
334 The "day" element specifies the day of the month in numeric format.
342 <!ELEMENT type ( %inline.content; )*>
347 <!ELEMENT format ( %inline.content; )*>
352 <!ELEMENT identifier ( %inline.content; )*>
357 <!ELEMENT source ( %inline.content; )*>
362 <!ELEMENT language ( %inline.content; )*>
367 <!ELEMENT relation ( %inline.content; )*>
372 <!ELEMENT coverage ( %inline.content; | %block.content; )*>
377 <!ELEMENT rights ( %inline.content; | %block.content; )*>
382 <!ELEMENT link EMPTY>
386 idrefs IDREFS #IMPLIED>
389 The "link" element has been added to the Dublin Core elements to
390 represent relationships to other parts of the document. The "idrefs"
391 attribute has been added to allow relationships that are held with
392 more than one part of the document.
396 <link class="next" idref="dedicate" />
398 <link class="friends" idrefs="dedicate cmbtrulz" />
402 <!-- ::::::::::::::::::::: section Element ::::::::::::::::::::::: -->
404 <!ELEMENT section ( meta, footnotes?, illustrations?, data )>
411 The "section" element represents one hierarchical level of data.
412 Section elements can be nested (inside the "data" element) in
413 order to create more complex data representations.
415 A "section" element can used as a linking element. The most useful way
416 to utilize this is to make it a named anchor and thus the target of a
422 <meta><title . . .> . . . </title></meta>
423 <data . . .> . . . </data>
424 <footnotes . . .> . . . </footnotes>
428 <meta><title . . .> . . . </title></meta>
431 <section id="dedication">
432 <meta><title . . .> . . . </title></meta>
433 <data . . .> . . . </data>
441 <!ELEMENT data ( %block.content; | section )*>
447 The "data" element contains the main data contained within
448 a section. Note that a nested section structure can be created by
449 including a "section" element within the content of the "data"
456 <combat . . .> . . . </combat>
461 <section . . .> . . . </section>
466 <!ELEMENT illustrations ( illustration | illgroup )*>
467 <!ATTLIST illustrations
472 The "illustrations" element represents a collection of illustrations.
473 The illustrations, or illustration groups, should be listed in the
474 order they appear in the book.
479 <illustration . . . />
480 <illgroup . . .>. . .</illgroup>
486 <!ELEMENT illgroup ( illustration )*>
494 The "illgroup" element represents a group of illustrations contained
495 within one section. It is used when individual links to the each
496 illustration from the illustrations index are not wanted.
500 <illgroup idref=". . .">
501 <illustration . . . />
502 <illustration . . . />
506 <illgroup idref=". . ." class="hidden">
507 <illustration . . . />
508 <illustration . . . />
514 <!ELEMENT footnotes ( footnote )*>
520 The "footnotes" element represents the collection of extra-textual
521 information contained within "footnote" elements.
526 <footnote . . .> . . . </footnote>
527 <footnote . . .> . . . </footnote>
533 <!ELEMENT footnote ( %block.content; )*>
540 The "footnote" element contains extra-textual information. It can be
541 used as a linking element and can thus be used to refer back to a
542 named anchor within the document.
547 <p . . .>This paragraph requires an appropriate footnote
548 <a id="reference" idref="footnote-reference" . . ./>.
553 <footnote id="footnote-reference" idref="reference">
554 <p . . .>This is the appropriate footnote.</p>
561 <!-- ============================================================= -->
562 <!-- Block Elements -->
563 <!-- ============================================================= -->
565 <!-- :::::::::::::::::::::::::: Lists :::::::::::::::::::::::::::: -->
567 <!ELEMENT ul ( li )*>
573 The "ul" represents an unordered list.
578 <li . . .> . . . </li>
579 <li . . .> . . . </li>
585 <!ELEMENT ol ( li )*>
591 The "ol" element represents an ordered list.
596 <li . . .> . . . First Item . . . </li>
597 <li . . .> . . . Second Item . . . </li>
603 <!ELEMENT li ( %inline.content; | %block.content; )*>
609 The "li" element is a generic list item used within both ordered and
610 unordered lists (i.e. "ol" and "ul" elements).
617 <li>another list item</li>
622 <li>first list item</li>
623 <li>second list item</li>
629 <!ELEMENT dl ( dt, dd? )*>
635 The "dl" element represents a list of terms and their definitions.
640 <dt . . .> . . . First Term . . . </dt>
641 <dd . . .> . . . First Term's Definition . . . </dd>
643 <dt . . .> . . . Second Term . . . </dt>
644 <dd . . .> . . . Second Term's Definition . . . </dd>
645 <dt . . .> . . . Third Term with No Definition . . . </dt>
650 <!ELEMENT dt ( %inline.content; )*>
656 The "dt" element represents a definition term within a definition
657 list. It should be immediately followed by its definitions contained
658 within "dd" elements.
664 <dt>Definition Term</dt>
665 <dd . . .> . . . Definition . . . </dd>
671 <!ELEMENT dd ( %inline.content; | %block.content; )*>
677 The "dd" element contains a definition.
681 <dt . . .> . . . Term to be defined . . . </dt>
682 <dd>Definition of the term.</dd>
686 <!-- :::::::::::::::::::::::::: Tables ::::::::::::::::::::::::::: -->
688 <!ELEMENT table ( tr )*>
694 The "table" element represents tabular data. It's data is organized
700 <tr . . .> . . . </tr>
701 <tr . . .> . . . </tr>
707 <!ELEMENT tr ( th | td )*>
713 The "tr" element contains a collection of "th" and "td" elements that
714 represent one row of a "table".
721 <th . . .> . . . </th>
722 <td . . .> . . . </td>
730 <!ELEMENT th ( %inline.content; )*>
733 %cell.align.attributes;
737 The "th" contains a table header used to label a particular row or
738 column of tabular data.
745 <td . . .> . . . </td>
746 <td . . .> . . . </td>
752 <!ELEMENT td ( %inline.content; )*>
755 %cell.align.attributes;
759 The "td" element contains one cell of tabular data.
771 <!-- :::::::::::::::::::::: Miscellaneous :::::::::::::::::::::::: -->
773 <!ELEMENT p ( %inline.content; )*>
779 The "p" element contains a paragraph.
783 <p>This is a (short) paragraph.</p>
787 <!ELEMENT blockquote ( %block.content; )*>
793 The "blockquote" element contains a lengthy quotation which isn't
794 contained within a paragraph.
799 <p>There was once a Kai monk from Sommerlund . . .</p>
804 <!ELEMENT combat ( enemy, enemy-attribute+ )>
810 The "combat" element contains one combat represented by the enemy's
816 <enemy . . .> . . . </enemy>
817 <enemy-attribute . . .> . . . </enemy-attribute>
818 <enemy-attribute . . .> . . . </enemy-attribute>
824 <!ELEMENT enemy ( %inline.content; )*>
830 The "enemy" element contains an enemy's name.
836 <enemy>12-foot Giak</enemy>
842 <!ELEMENT enemy-attribute ( #PCDATA )*>
843 <!ATTLIST enemy-attribute
848 The "enemy-attribute" element contains one particular attribute which
855 <enemy-attribute>30</enemy-attribute>
861 <!ELEMENT choice ( %inline.content; | link-text )*>
868 The "choice" element contains the text describing a choice presented
869 within a section. It's a linking element and therefore can link to
870 the place to which the choice leads.
872 The choice element can contain "link-text" elements which suggest text
873 that should be used by the user agent to represent the hyperlink.
877 <section id="section12" . . .> . . . </section>
879 <choice idref="section12">If you would like to fight the 12-foot Giak,
880 <link-text . . .> . . . turn to 12. . . . </link-text>
885 <!ELEMENT link-text ( %inline.content; )*>
891 The "link-text" element contains text which is suggested for use by
892 hypertext user interfaces to represent one end of a hyperlink.
898 <link-text>the unfortunately ubiquitous "Click Here!"</link-text>
904 <!ELEMENT illustration ( meta?, instance+ )>
905 <!ATTLIST illustration
912 The "illustration" element contains a set of alternate
913 representations of a particular illustration.
919 <instance . . .> . . . </instance>
920 <instance . . .> . . . </instance>
926 <!ELEMENT instance ( %inline.content; | %block.content; )*>
931 height CDATA #IMPLIED
932 mime-type CDATA #IMPLIED
936 The "instance" element describes one instance of an illustration.
938 The "src" attribute is a URL for the data file for the illustration.
940 The "width" and "height" attributes contain the dimensions of the
943 The "mime-type" attribute can contain an appropriate label for the
944 format of the illustration file (e.g. "image/png" or "image/jpeg").
946 The "instance" element can contain block or inline content that
947 is intended to replace graphical illustrations.
953 <instance src="17.gif" width="386" height="532" type="image/gif" />
954 <instance src="" width="" height="" type="text" >
962 <!ELEMENT illref EMPTY>
970 The "illref" element is used to mark the location of an illustration.
971 The actual illustration is declared elsewhere.
973 Since the placement of a particular illustration may depend on the
974 output format, one "illref" is required for each format.
978 <illref idref="ill2" class="html"/>
979 <illref idref="ill2" class="pdf"/>
983 <!ELEMENT signpost ( %inline.content; | %block.content; )*>
989 The "signpost" element contains the text of a sign or message that
990 should be presented offset from surrounding text.
994 <signpost>RENDALIM'S LABORATORY</signpost>
1004 The "hr" element designates a horizontal rule. Since this is a
1005 presentational tag, it should be used sparingly in cases where new
1006 logical divisions of the text begin which aren't given a unique
1015 <!-- ============================================================= -->
1016 <!-- Inline Elements -->
1017 <!-- ============================================================= -->
1019 <!ELEMENT a ( %inline.content; )*>
1027 The "a" element is used to contain inline content that should be a
1028 hypertext anchor. The "a" element should not contain another linking
1029 element (e.g. "a", "bookref", "footref").
1031 The "href" attribute is added to allow a reference outside of the
1038 <a idref="section12" id="foo">Section 12</a>
1044 <!ELEMENT bookref ( %inline.content; )*>
1048 series CDATA #IMPLIED
1049 book CDATA #REQUIRED
1050 section CDATA #IMPLIED
1054 The "bookref" element is used to contain inline content that should be a
1055 hypertext anchor to another book.
1057 The "series" attribute is a tag that denotes the series of the book that
1058 the link points to. The attribute may be left out if the book is part of
1059 the same series as the one containing the link.
1061 The "book" attribute is a tag that denotes the book that the link points
1062 to. This is not necessarily a URL.
1064 The "section" attribute is a tag indicating which section to link to.
1065 This is not necessarily a URL. The attribute may be left out if no
1066 particular section is referred to.
1072 <bookref series="lw" book="11tpot" section="sect33">
1073 The Prisoners of Time: Section 33
1080 <bookref book="04wotw">Book 4</bookref>
1086 <!ELEMENT footref ( %inline.content; )*>
1093 The "footref" element is used to indicate the position of a reference
1094 to a "footnote" element. It should normally not contain any text.
1100 You lose 3EP.<footref id="footref1" idref="footnote1"/>
1106 <!ELEMENT em ( %inline.content; )*>
1112 The "em" element contains text that should be emphasized. Although not
1113 part of the DTD and therefore not guaranteed or required to be so, the
1114 text should be typeset with an italic font.
1118 <em>You are being attacked!</em>
1124 <!ELEMENT strong ( %inline.content; )*>
1130 The "strong" element contains text that should be emphasized. Although
1131 not part of the DTD and therefore not guaranteed or required to be so,
1132 the text should be typeset with a bold font weight.
1136 <strong>If</strong> you have the Talisman of Supreme Obscurity,
1142 <!ELEMENT thought ( %inline.content; )*>
1148 The "thought" element contains text that is the character's thoughts or is
1149 an overheard thought. Although not part of the DTD and therefore not
1150 guaranteed or required to be so, the text should be typeset with an italic
1155 Lone Wolf heard the words <thought>Die Northlander!</strong> echo in
1162 <!ELEMENT foreign ( %inline.content; )*>
1168 The "foreign" element contains a phrase in a non-native language.
1169 Although not part of the DTD and therefore not guaranteed or required
1170 to be so, the text should be typeset with an italic font face.
1174 The Giak horde attacked <foreign>en masse</foreign>.
1180 <!ELEMENT quote ( %inline.content; )*>
1186 The "quote" element contains an inline quotation.
1190 <p . . .>The Giak yelped <quote . . .>Oww!</quote></p>
1194 <!ELEMENT cite ( %inline.content; )*>
1200 The "cite" element contains the title of a sited resource.
1206 <cite>Flight from the Dark</cite>
1212 <!ELEMENT code ( %inline.content; )*>
1218 The "code" element contains data that should be interpreted as literal
1219 input to a computer (e.g. email addresses and URIs).
1223 <code>http://www.projectaon.org/</code>
1233 The "br" indicates a required line break. Its use should be confined
1234 to documents such as poems that require a particular line structure.
1240 There once was a Kai monk from Sommerlund<br />
1241 Who always wore a cummerbund<br />
1247 <!ELEMENT typ ( #PCDATA )>
1253 The "typ" element is used to denote purely typographical markup. For
1254 example, bold font face, italics, and smaller font are purely of
1255 typographical concern. Take care to not use this in place of logical
1256 markup such as the "em" element when it is more appropriate.
1260 The <typ class="bold">Project Aon</a> volunteers.
1264 <!ELEMENT onomatopoeia ( #PCDATA )>
1265 <!ATTLIST onomatopoeia
1270 The "onomatopoeia" element is used to denote words that imitate a
1271 sound (e.g., "whoosh", "bang").
1275 The <onomatopoeia>clang</onomatopoeia> of the bell is deafening.
1279 <!ELEMENT spell ( #PCDATA )>
1285 The "spell" element contains the name of a magic spell.
1289 Having had no success with his female peers, the acolyte learned the
1290 forbidden <spell>Attract Opposite Gender</spell> spell.
1294 <!ELEMENT item ( #PCDATA )>
1300 The "item" element contains the name of an item that the reader can
1301 pick up or interact with.
1305 Her <item>Sword</a> lay just out of reach.
1309 <!-- ============================================================= -->
1310 <!-- Character Elements -->
1311 <!-- ============================================================= -->
1314 The character elments provide a hook to specify a character without
1315 specifying the exact representation in target formats. The exact
1316 representation used is the responsibility of the processor (e.g XSLT
1319 Portions Copyright International Organization for Standardization 1986
1320 Permission to copy in any form is granted for use with conforming SGML
1321 systems and applications as defined in ISO 8879, provided this notice
1322 is included in all copies.
1326 <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
1327 <!ELEMENT ch.apos EMPTY><!ATTLIST ch.apos %core.attributes;>
1329 <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
1330 <!ELEMENT ch.nbsp EMPTY><!ATTLIST ch.nbsp %core.attributes;>
1332 <!-- inverted exclamation mark, U+00A1 ISOnum -->
1333 <!ELEMENT ch.iexcl EMPTY><!ATTLIST ch.iexcl %core.attributes;>
1335 <!-- cent sign, U+00A2 ISOnum -->
1336 <!ELEMENT ch.cent EMPTY><!ATTLIST ch.cent %core.attributes;>
1338 <!-- pound sign, U+00A3 ISOnum -->
1339 <!ELEMENT ch.pound EMPTY><!ATTLIST ch.pound %core.attributes;>
1341 <!-- currency sign, U+00A4 ISOnum -->
1342 <!ELEMENT ch.curren EMPTY><!ATTLIST ch.curren %core.attributes;>
1344 <!-- yen sign = yuan sign, U+00A5 ISOnum -->
1345 <!ELEMENT ch.yen EMPTY><!ATTLIST ch.yen %core.attributes;>
1347 <!-- broken bar = broken vertical bar, U+00A6 ISOnum -->
1348 <!ELEMENT ch.brvbar EMPTY><!ATTLIST ch.brvbar %core.attributes;>
1350 <!-- section sign, U+00A7 ISOnum -->
1351 <!ELEMENT ch.sect EMPTY><!ATTLIST ch.sect %core.attributes;>
1353 <!-- diaeresis = spacing diaeresis, U+00A8 ISOdia -->
1354 <!ELEMENT ch.uml EMPTY><!ATTLIST ch.uml %core.attributes;>
1356 <!-- copyright sign, U+00A9 ISOnum -->
1357 <!ELEMENT ch.copy EMPTY><!ATTLIST ch.copy %core.attributes;>
1359 <!-- feminine ordinal indicator, U+00AA ISOnum -->
1360 <!ELEMENT ch.ordf EMPTY><!ATTLIST ch.ordf %core.attributes;>
1362 <!-- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum -->
1363 <!ELEMENT ch.laquo EMPTY><!ATTLIST ch.laquo %core.attributes;>
1365 <!-- not sign, U+00AC ISOnum -->
1366 <!ELEMENT ch.not EMPTY><!ATTLIST ch.not %core.attributes;>
1368 <!-- soft hyphen = discretionary hyphen, U+00AD ISOnum -->
1369 <!ELEMENT ch.shy EMPTY><!ATTLIST ch.shy %core.attributes;>
1371 <!-- registered sign = registered trade mark sign, U+00AE ISOnum -->
1372 <!ELEMENT ch.reg EMPTY><!ATTLIST ch.reg %core.attributes;>
1374 <!-- macron = spacing macron = overline = APL overbar, U+00AF ISOdia -->
1375 <!ELEMENT ch.macr EMPTY><!ATTLIST ch.macr %core.attributes;>
1377 <!-- degree sign, U+00B0 ISOnum -->
1378 <!ELEMENT ch.deg EMPTY><!ATTLIST ch.deg %core.attributes;>
1380 <!-- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum -->
1381 <!ELEMENT ch.plusmn EMPTY><!ATTLIST ch.plusmn %core.attributes;>
1383 <!-- superscript two = superscript digit two = squared, U+00B2 ISOnum -->
1384 <!ELEMENT ch.sup2 EMPTY><!ATTLIST ch.sup2 %core.attributes;>
1386 <!-- superscript three = superscript digit three = cubed, U+00B3 ISOnum -->
1387 <!ELEMENT ch.sup3 EMPTY><!ATTLIST ch.sup3 %core.attributes;>
1389 <!-- acute accent = spacing acute, U+00B4 ISOdia -->
1390 <!ELEMENT ch.acute EMPTY><!ATTLIST ch.acute %core.attributes;>
1392 <!-- micro sign, U+00B5 ISOnum -->
1393 <!ELEMENT ch.micro EMPTY><!ATTLIST ch.micro %core.attributes;>
1395 <!-- pilcrow sign = paragraph sign, U+00B6 ISOnum -->
1396 <!ELEMENT ch.para EMPTY><!ATTLIST ch.para %core.attributes;>
1398 <!-- middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum -->
1399 <!ELEMENT ch.middot EMPTY><!ATTLIST ch.middot %core.attributes;>
1401 <!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
1402 <!ELEMENT ch.cedil EMPTY><!ATTLIST ch.cedil %core.attributes;>
1404 <!-- superscript one = superscript digit one, U+00B9 ISOnum -->
1405 <!ELEMENT ch.sup1 EMPTY><!ATTLIST ch.sup1 %core.attributes;>
1407 <!-- masculine ordinal indicator, U+00BA ISOnum -->
1408 <!ELEMENT ch.ordm EMPTY><!ATTLIST ch.ordm %core.attributes;>
1410 <!-- right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum -->
1411 <!ELEMENT ch.raquo EMPTY><!ATTLIST ch.raquo %core.attributes;>
1413 <!-- vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum -->
1414 <!ELEMENT ch.frac14 EMPTY><!ATTLIST ch.frac14 %core.attributes;>
1416 <!-- vulgar fraction one half = fraction one half, U+00BD ISOnum -->
1417 <!ELEMENT ch.frac12 EMPTY><!ATTLIST ch.frac12 %core.attributes;>
1419 <!-- vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum -->
1420 <!ELEMENT ch.frac34 EMPTY><!ATTLIST ch.frac34 %core.attributes;>
1422 <!-- inverted question mark = turned question mark, U+00BF ISOnum -->
1423 <!ELEMENT ch.iquest EMPTY><!ATTLIST ch.iquest %core.attributes;>
1425 <!-- latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1 -->
1426 <!ELEMENT ch.Agrave EMPTY><!ATTLIST ch.Agrave %core.attributes;>
1428 <!-- latin capital letter A with acute, U+00C1 ISOlat1 -->
1429 <!ELEMENT ch.Aacute EMPTY><!ATTLIST ch.Aacute %core.attributes;>
1431 <!-- latin capital letter A with circumflex, U+00C2 ISOlat1 -->
1432 <!ELEMENT ch.Acirc EMPTY><!ATTLIST ch.Acirc %core.attributes;>
1434 <!-- latin capital letter A with tilde, U+00C3 ISOlat1 -->
1435 <!ELEMENT ch.Atilde EMPTY><!ATTLIST ch.Atilde %core.attributes;>
1437 <!-- latin capital letter A with diaeresis, U+00C4 ISOlat1 -->
1438 <!ELEMENT ch.Auml EMPTY><!ATTLIST ch.Auml %core.attributes;>
1440 <!-- latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1 -->
1441 <!ELEMENT ch.Aring EMPTY><!ATTLIST ch.Aring %core.attributes;>
1443 <!-- latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1 -->
1444 <!ELEMENT ch.AElig EMPTY><!ATTLIST ch.AElig %core.attributes;>
1446 <!-- latin capital letter C with cedilla, U+00C7 ISOlat1 -->
1447 <!ELEMENT ch.Ccedil EMPTY><!ATTLIST ch.Ccedil %core.attributes;>
1449 <!-- latin capital letter E with grave, U+00C8 ISOlat1 -->
1450 <!ELEMENT ch.Egrave EMPTY><!ATTLIST ch.Egrave %core.attributes;>
1452 <!-- latin capital letter E with acute, U+00C9 ISOlat1 -->
1453 <!ELEMENT ch.Eacute EMPTY><!ATTLIST ch.Eacute %core.attributes;>
1455 <!-- latin capital letter E with circumflex, U+00CA ISOlat1 -->
1456 <!ELEMENT ch.Ecirc EMPTY><!ATTLIST ch.Ecirc %core.attributes;>
1458 <!-- latin capital letter E with diaeresis, U+00CB ISOlat1 -->
1459 <!ELEMENT ch.Euml EMPTY><!ATTLIST ch.Euml %core.attributes;>
1461 <!-- latin capital letter I with grave, U+00CC ISOlat1 -->
1462 <!ELEMENT ch.Igrave EMPTY><!ATTLIST ch.Igrave %core.attributes;>
1464 <!-- latin capital letter I with acute, U+00CD ISOlat1 -->
1465 <!ELEMENT ch.Iacute EMPTY><!ATTLIST ch.Iacute %core.attributes;>
1467 <!-- latin capital letter I with circumflex, U+00CE ISOlat1 -->
1468 <!ELEMENT ch.Icirc EMPTY><!ATTLIST ch.Icirc %core.attributes;>
1470 <!-- latin capital letter I with diaeresis, U+00CF ISOlat1 -->
1471 <!ELEMENT ch.Iuml EMPTY><!ATTLIST ch.Iuml %core.attributes;>
1473 <!-- latin capital letter ETH, U+00D0 ISOlat1 -->
1474 <!ELEMENT ch.ETH EMPTY><!ATTLIST ch.ETH %core.attributes;>
1476 <!-- latin capital letter N with tilde, U+00D1 ISOlat1 -->
1477 <!ELEMENT ch.Ntilde EMPTY><!ATTLIST ch.Ntilde %core.attributes;>
1479 <!-- latin capital letter O with grave, U+00D2 ISOlat1 -->
1480 <!ELEMENT ch.Ograve EMPTY><!ATTLIST ch.Ograve %core.attributes;>
1482 <!-- latin capital letter O with acute, U+00D3 ISOlat1 -->
1483 <!ELEMENT ch.Oacute EMPTY><!ATTLIST ch.Oacute %core.attributes;>
1485 <!-- latin capital letter O with circumflex, U+00D4 ISOlat1 -->
1486 <!ELEMENT ch.Ocirc EMPTY><!ATTLIST ch.Ocirc %core.attributes;>
1488 <!-- latin capital letter O with tilde, U+00D5 ISOlat1 -->
1489 <!ELEMENT ch.Otilde EMPTY><!ATTLIST ch.Otilde %core.attributes;>
1491 <!-- latin capital letter O with diaeresis, U+00D6 ISOlat1 -->
1492 <!ELEMENT ch.Ouml EMPTY><!ATTLIST ch.Ouml %core.attributes;>
1494 <!-- multiplication sign, U+00D7 ISOnum -->
1495 <!ELEMENT ch.times EMPTY><!ATTLIST ch.times %core.attributes;>
1497 <!-- latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1 -->
1498 <!ELEMENT ch.Oslash EMPTY><!ATTLIST ch.Oslash %core.attributes;>
1500 <!-- latin capital letter U with grave, U+00D9 ISOlat1 -->
1501 <!ELEMENT ch.Ugrave EMPTY><!ATTLIST ch.Ugrave %core.attributes;>
1503 <!-- latin capital letter U with acute, U+00DA ISOlat1 -->
1504 <!ELEMENT ch.Uacute EMPTY><!ATTLIST ch.Uacute %core.attributes;>
1506 <!-- latin capital letter U with circumflex, U+00DB ISOlat1 -->
1507 <!ELEMENT ch.Ucirc EMPTY><!ATTLIST ch.Ucirc %core.attributes;>
1509 <!-- latin capital letter U with diaeresis, U+00DC ISOlat1 -->
1510 <!ELEMENT ch.Uuml EMPTY><!ATTLIST ch.Uuml %core.attributes;>
1512 <!-- latin capital letter Y with acute, U+00DD ISOlat1 -->
1513 <!ELEMENT ch.Yacute EMPTY><!ATTLIST ch.Yacute %core.attributes;>
1515 <!-- latin capital letter THORN, U+00DE ISOlat1 -->
1516 <!ELEMENT ch.THORN EMPTY><!ATTLIST ch.THORN %core.attributes;>
1518 <!-- latin small letter sharp s = ess-zed, U+00DF ISOlat1 -->
1519 <!ELEMENT ch.szlig EMPTY><!ATTLIST ch.szlig %core.attributes;>
1521 <!-- latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1 -->
1522 <!ELEMENT ch.agrave EMPTY><!ATTLIST ch.agrave %core.attributes;>
1524 <!-- latin small letter a with acute, U+00E1 ISOlat1 -->
1525 <!ELEMENT ch.aacute EMPTY><!ATTLIST ch.aacute %core.attributes;>
1527 <!-- latin small letter a with circumflex, U+00E2 ISOlat1 -->
1528 <!ELEMENT ch.acirc EMPTY><!ATTLIST ch.acirc %core.attributes;>
1530 <!-- latin small letter a with tilde, U+00E3 ISOlat1 -->
1531 <!ELEMENT ch.atilde EMPTY><!ATTLIST ch.atilde %core.attributes;>
1533 <!-- latin small letter a with diaeresis, U+00E4 ISOlat1 -->
1534 <!ELEMENT ch.auml EMPTY><!ATTLIST ch.auml %core.attributes;>
1536 <!-- latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1 -->
1537 <!ELEMENT ch.aring EMPTY><!ATTLIST ch.aring %core.attributes;>
1539 <!-- latin small letter ae = latin small ligature ae, U+00E6 ISOlat1 -->
1540 <!ELEMENT ch.aelig EMPTY><!ATTLIST ch.aelig %core.attributes;>
1542 <!-- latin small letter c with cedilla, U+00E7 ISOlat1 -->
1543 <!ELEMENT ch.ccedil EMPTY><!ATTLIST ch.ccedil %core.attributes;>
1545 <!-- latin small letter e with grave, U+00E8 ISOlat1 -->
1546 <!ELEMENT ch.egrave EMPTY><!ATTLIST ch.egrave %core.attributes;>
1548 <!-- latin small letter e with acute, U+00E9 ISOlat1 -->
1549 <!ELEMENT ch.eacute EMPTY><!ATTLIST ch.eacute %core.attributes;>
1551 <!-- latin small letter e with circumflex, U+00EA ISOlat1 -->
1552 <!ELEMENT ch.ecirc EMPTY><!ATTLIST ch.ecirc %core.attributes;>
1554 <!-- latin small letter e with diaeresis, U+00EB ISOlat1 -->
1555 <!ELEMENT ch.euml EMPTY><!ATTLIST ch.euml %core.attributes;>
1557 <!-- latin small letter i with grave, U+00EC ISOlat1 -->
1558 <!ELEMENT ch.igrave EMPTY><!ATTLIST ch.igrave %core.attributes;>
1560 <!-- latin small letter i with acute, U+00ED ISOlat1 -->
1561 <!ELEMENT ch.iacute EMPTY><!ATTLIST ch.iacute %core.attributes;>
1563 <!-- latin small letter i with circumflex, U+00EE ISOlat1 -->
1564 <!ELEMENT ch.icirc EMPTY><!ATTLIST ch.icirc %core.attributes;>
1566 <!-- latin small letter i with diaeresis, U+00EF ISOlat1 -->
1567 <!ELEMENT ch.iuml EMPTY><!ATTLIST ch.iuml %core.attributes;>
1569 <!-- latin small letter eth, U+00F0 ISOlat1 -->
1570 <!ELEMENT ch.eth EMPTY><!ATTLIST ch.eth %core.attributes;>
1572 <!-- latin small letter n with tilde, U+00F1 ISOlat1 -->
1573 <!ELEMENT ch.ntilde EMPTY><!ATTLIST ch.ntilde %core.attributes;>
1575 <!-- latin small letter o with grave, U+00F2 ISOlat1 -->
1576 <!ELEMENT ch.ograve EMPTY><!ATTLIST ch.ograve %core.attributes;>
1578 <!-- latin small letter o with acute, U+00F3 ISOlat1 -->
1579 <!ELEMENT ch.oacute EMPTY><!ATTLIST ch.oacute %core.attributes;>
1581 <!-- latin small letter o with circumflex, U+00F4 ISOlat1 -->
1582 <!ELEMENT ch.ocirc EMPTY><!ATTLIST ch.ocirc %core.attributes;>
1584 <!-- latin small letter o with tilde, U+00F5 ISOlat1 -->
1585 <!ELEMENT ch.otilde EMPTY><!ATTLIST ch.otilde %core.attributes;>
1587 <!-- latin small letter o with diaeresis, U+00F6 ISOlat1 -->
1588 <!ELEMENT ch.ouml EMPTY><!ATTLIST ch.ouml %core.attributes;>
1590 <!-- division sign, U+00F7 ISOnum -->
1591 <!ELEMENT ch.divide EMPTY><!ATTLIST ch.divide %core.attributes;>
1593 <!-- latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1 -->
1594 <!ELEMENT ch.oslash EMPTY><!ATTLIST ch.oslash %core.attributes;>
1596 <!-- latin small letter u with grave, U+00F9 ISOlat1 -->
1597 <!ELEMENT ch.ugrave EMPTY><!ATTLIST ch.ugrave %core.attributes;>
1599 <!-- latin small letter u with acute, U+00FA ISOlat1 -->
1600 <!ELEMENT ch.uacute EMPTY><!ATTLIST ch.uacute %core.attributes;>
1602 <!-- latin small letter u with circumflex, U+00FB ISOlat1 -->
1603 <!ELEMENT ch.ucirc EMPTY><!ATTLIST ch.ucirc %core.attributes;>
1605 <!-- latin small letter u with diaeresis, U+00FC ISOlat1 -->
1606 <!ELEMENT ch.uuml EMPTY><!ATTLIST ch.uuml %core.attributes;>
1608 <!-- latin small letter y with acute, U+00FD ISOlat1 -->
1609 <!ELEMENT ch.yacute EMPTY><!ATTLIST ch.yacute %core.attributes;>
1611 <!-- latin small letter thorn, U+00FE ISOlat1 -->
1612 <!ELEMENT ch.thorn EMPTY><!ATTLIST ch.thorn %core.attributes;>
1614 <!-- latin small letter y with diaeresis, U+00FF ISOlat1 -->
1615 <!ELEMENT ch.yuml EMPTY><!ATTLIST ch.yuml %core.attributes;>
1618 <!-- ::::::::::::::::::::: Special Characters :::::::::::::::::::: -->
1621 <!ELEMENT ch.ampersand EMPTY><!ATTLIST ch.ampersand %core.attributes;>
1623 <!-- opening left quotation mark -->
1624 <!ELEMENT ch.lsquot EMPTY><!ATTLIST ch.lsquot %core.attributes;>
1626 <!-- closing right quotation mark -->
1627 <!ELEMENT ch.rsquot EMPTY><!ATTLIST ch.rsquot %core.attributes;>
1629 <!-- opening left double quotation mark -->
1630 <!ELEMENT ch.ldquot EMPTY><!ATTLIST ch.ldquot %core.attributes;>
1632 <!-- closing right double quotation mark -->
1633 <!ELEMENT ch.rdquot EMPTY><!ATTLIST ch.rdquot %core.attributes;>
1635 <!-- mathematical minus -->
1636 <!ELEMENT ch.minus EMPTY><!ATTLIST ch.minus %core.attributes;>
1639 <!ELEMENT ch.endash EMPTY><!ATTLIST ch.endash %core.attributes;>
1642 <!ELEMENT ch.emdash EMPTY><!ATTLIST ch.emdash %core.attributes;>
1645 <!ELEMENT ch.ellips EMPTY><!ATTLIST ch.ellips %core.attributes;>
1647 <!-- left ellipsis, used at the beginning of edited material -->
1648 <!ELEMENT ch.lellips EMPTY><!ATTLIST ch.lellips %core.attributes;>
1650 <!-- blank line to be filled in -->
1651 <!ELEMENT ch.blankline EMPTY><!ATTLIST ch.blankline %core.attributes;>
1653 <!-- percent sign -->
1654 <!ELEMENT ch.percent EMPTY><!ATTLIST ch.percent %core.attributes;>
1656 <!-- small horizontal space for use between adjacent quotation marks - added mainly for LaTeX's sake -->
1657 <!ELEMENT ch.thinspace EMPTY><!ATTLIST ch.thinspace %core.attributes;>
1659 <!-- vulgar fraction one sixteenth = fraction on sixteenth -->
1660 <!ELEMENT ch.frac116 EMPTY><!ATTLIST ch.frac116 %core.attributes;>
1662 <!-- mathematical plus -->
1663 <!ELEMENT ch.plus EMPTY><!ATTLIST ch.plus %core.attributes;>
1665 <!-- ============================================================= -->
1667 <!-- ============================================================= -->
1669 <!-- :::::::::::::: Valid Gamebook Document Example :::::::::::::: -->
1671 This document is not intended to document current practice in Project
1672 Aon. It is merely here to demonstrate the concepts of the Gamebook
1673 DTD. For current practice, please refer to published XML files.
1678 <?xml version="1.0" encoding="iso-8859-1"?>
1679 <!DOCTYPE gamebook SYSTEM "gamebook.dtd">
1681 <gamebook version="0.12" xml:lang="en-UK">
1684 <title>Flight from the Dark</title>
1685 <creator>Joe Dever and Gary Chalk</creator>
1686 <publisher>Project Aon</publisher>
1687 <date><year>2001</year><month>10</month><day>24</day></date>
1688 <rights>Copyright <ch.copy/> 1984 Joe Dever and Gary Chalk.</rights>
1691 <section id="section1">
1692 <meta><title>1</title></meta>
1694 <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>
1695 <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>
1696 <p>At the foot of the hill, the path splits into two directions, both leading into a large wood.</p>
1698 <choice idref="section85">If you wish to take the right path into the wood, <link-text>turn to 85</link-text>.</choice>
1699 <choice idref="section275">If you wish to follow the left track, <link-text>turn to 275</link-text>.</choice>
1700 <choice idref="section141">If you wish to use your Kai Discipline of Sixth Sense, <link-text>turn to 141</link-text>.</choice>
1703 <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>
1707 <section id="section17">
1708 <meta><title>17</title></meta>
1710 <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>
1713 <instance src="1.gif" width="386" height="532" mime-type="image/gif" />
1716 <p>Deduct 1 point from your <typ class="attribute">COMBAT SKILL</typ> and fight the Kraan.</p>
1719 <enemy>Kraan:</enemy>
1720 <enemy-attribute>16</enemy-attribute>
1721 <enemy-attribute>24</enemy-attribute>
1724 <p>If you kill the creature, you quickly descend the far side of the hill to avoid the Giaks.</p>
1725 <p>Pick a number from the Random Number Table.</p>
1727 <choice idref="section53">If you pick 0, <link-text>turn to 53</link-text>.</choice>
1728 <choice idref="section274">If you pick 1<ch.endash/>2, <link-text>turn to 274</link-text>.</choice>
1729 <choice idref="section316">If you pick 3<ch.endash/>9, <link-text>turn to 316</link-text>.</choice>
1733 <section id="section53">
1734 <meta><title>53</title></meta>
1738 <section id="section85">
1739 <meta><title>85</title></meta>
1743 <section id="section141">
1744 <meta><title>141</title></meta>
1748 <section id="section274">
1749 <meta><title>274</title></meta>
1753 <section id="section275">
1754 <meta><title>275</title></meta>
1758 <section id="section316">
1759 <meta><title>316</title></meta>