From zedwiki
<?xml version="1.0" encoding="UTF-8"?>
<book>
<ver>system version 111</ver>
<comment>This is a comment</comment>
<front>
<bannerlogo type="RNIB"></bannerlogo>
<titleinf>
<title>Simple Book</title>
<subtitle>The Subtitle</subtitle>
<author>John Smith</author>
<subauthor>Introduction by David Jones</subauthor>
<series>The <acronym>XML</acronym> test series</series>
<titledet>
<pubaddress>Oxford University Press, Oxford.</pubaddress>
<prevedition>First published 1992</prevedition>
<prevedition>Reprinted 1997</prevedition>
<imprint>1998</imprint>
<isbn>ISBN 12 34 56</isbn>
</titledet>
</titleinf>
<bibinfo></bibinfo>
<extraneous>
<p>This book was 'produced' as a test of the <acronym>XML</acronym> markup methodology. It has a <flang lang="english">number</flang> of features commonly used in books.</p>
<p>It will not <u>contain everything</u>, however.</p>
<p>Here are some entities: 'hello' "goodbye" "hello". - -º hello. An ellipsis ÔǪ and e acute +¿. </p>
<p>-ú 3 4 6 x -« -® 7 -¥ y 'hello hello hello "hello Ôäó 7 </p>
<p>Another paragraph. 6 Mb or 5km or 7Mb</p>
<p>A superscript m<sup>2</sup> and subscript m<sub>3</sub> here.</p>
<extrsection>
<head lang="french">Other titles in the series</head>
<p>The following titles are also available:</p>
<list>
<litem>The <linkto location="#place1">Story of Cricket</linkto>, Mr. Fred Bloggs</litem>
<litem>How to grow cactii, Tim Turner</litem>
</list>
<p>This is a paragraph in the extrsection.</p>
</extrsection>
<extrsection>
<p>This is a new extrsection, without a heading.</p>
<extrsubsect1>
<head>Further Information</head>
<p>Further information may be obtained.</p>
</extrsubsect1>
</extrsection>
</extraneous>
<contents>
<head>Contents</head>
<fentries>
<entry1>
<secname>Preface</secname>
<pageno>4</pageno>
</entry1>
<entry1>
<secname>Introduction</secname>
<pageno>5</pageno>
</entry1>
<entry2>
<secname>1 Starting out</secname>
<pageno>5</pageno>
</entry2>
<entry2>
<secname>Equipment</secname>
<pageno>5</pageno>
</entry2>
</fentries>
<entryp>
<secname>Part 1</secname>
</entryp>
<entry1>
<secname>Chapter 1</secname>
<pageno>6</pageno>
</entry1>
<entry1>
<secname>Chapter 2</secname>
<pageno>7</pageno>
</entry1>
<entry2>
<secname>Section 2.1</secname>
<pageno>8</pageno>
</entry2>
<entry3>
<secname>Section 2.1.1</secname>
<pageno>9</pageno>
</entry3>
<bentries>
<entry1>
<secname>Index</secname>
<pageno>99</pageno>
</entry1>
</bentries>
</contents>
<section medium="braille">
<head>Note to Braille edition</head>
<p>This is a note to the braille edition. You can explain all sorts of things here.</p>
</section>
<preface>
<head>Preface</head>
<p>This is the preface. It has a few paragraphs.</p>
<p>Here is another paragraph.</p>
<section>
<head>Preface Section</head>
<p>A paragraph in the preface section.</p>
</section>
<enddetails>
<source>
<sourceelt>The author</sourceelt>
<sourceelt>Pinner, Middx</sourceelt>
</source>
</enddetails>
</preface>
<dedication>
<head>Dedication</head>
<p>To all my friends and foes.</p>
</dedication>
<epigraph>
<head>Epigraph</head>
<p>This is an epigraph</p>
<source>
<sourceelt>The epigraph source</sourceelt>
</source>
</epigraph>
</front>
<body>
<section>
<head>Chapter 1</head>
<subhead>Chapter Subheading</subhead>
<epigraph>
<p>A few words of epigraph at the start of the chapter</p>
<poem>
<pline>The longer a book seems to be,</pline>
<pline>The less it makes much sense to me!</pline>
<author>Anon</author>
</poem>
</epigraph>
<p>This is a paragraph. It will have some <i>italics</i> and some <b>bold</b> text. The paragraphs will runover as usual. Some foreign text: what does <flang lang="french">bien ici</flang> mean?</p>
<textbreak></textbreak>
<p>This is the next paragraph, preceded by a break in text.</p>
<p>A new paragraph. Here is a web address: <web>www.abc.co.uk</web> and an email: <email>abc@ttt.co.uk</email>. The following is a passage from another work:<longquote><head>A longquote heading</head><subhead>A longquote subheading</subhead><lqpara>This extract begins with a paragraph, although it may start with text mid-paragraph or mid-sentence.</lqpara><lqpara>This is a new paragraph inside the extract. There will also be a list:</lqpara><list><litem>This is the first item in the list. It will continue long enough to have a runover.</litem><litem>This is the secont item in the list.</litem></list><lqpara>This is a paragraph after the list in the extract.</lqpara><source><sourceelt>The Times, Nov 1988</sourceelt><sourceelt>Peterborough</sourceelt></source></longquote></p>
<p>This is a new paragraph outside the extract again. <stext medium="braille">This is for braille only</stext><stext medium="print">This is for print only</stext>I will now insert a poem:</p>
<poem brlform="linesign">
<head><ppage>3</ppage>A Poem</head>
<author>Spike Milligan</author>
<stanza>
<pline>Today I saw a little worm</pline>
<pline>Wiggling on its belly.</pline>
<pline>Perhaps it'd like to come inside,</pline>
<pline>And see what's on the telly.</pline>
</stanza>
<stanza>
<pline>This is a new stanza. This line is quite long and will hopefully runover to a new line to show the format.</pline>
<pline>A new line</pline>
</stanza>
</poem>
<subsect1 demote="1" lang="french">
<head><ppage>4</ppage>This is a Subsection 1</head>
<p lang="english">The current subsection will contain some other text items. <stext medium="print">This is a print addition.</stext> The <acronym>BBC</acronym> will broadcast today. A new print page <ppage>5</ppage>will be taken in this sentence. A note reference is now included<noteref>1</noteref>, but it is not obvious why.</p>
<p>Here is a long quote containing a poem:</p>
<longquote>
<poem>
<pline>This is a line of poetry</pline>
<pline>I don't like poems which don't rhyme</pline>
<pline>Including this one</pline>
</poem>
</longquote>
<p>This is a new paragraph. Now for a further subdivision:</p>
<subsect2 demote="2">
<head>This is a lower level Subsection 2</head>
<p>There will now follow a table:</p>
<table>
<head>Table 1</head>
<p>The following information relates to the 1987 census:</p>
<p medium="braille">The column headings are abbreviated as follows: day = day of year.</p>
<tablebody>
<colheads>
<chead>Person</chead>
<chead>Day</chead>
<chead>Location</chead>
<chead>Colour</chead>
</colheads>
<row>
<rowhead>Stephen</rowhead>
<di>Mon<noteref>1</noteref></di>
<di>London</di>
<di>Blue</di>
</row>
<row>
<rowhead>Mary</rowhead>
<di>Fri</di>
<di>Hull<noteref>2</noteref></di>
<di>Green</di>
</row>
</tablebody>
<itemnotes>
<noteid>1</noteid>
<notetext>This is presumed to be the day on the evidence of the witnesses present who were unanimous about what day it was</notetext>
<noteid>2</noteid>
<notetext>In the north.</notetext>
</itemnotes>
<source>
<sourceelt>Source: Statistics for Today</sourceelt>
</source>
</table>
<p>The next paragraph follows on here. Now it is time for a further subsection:</p>
<subsect3>
<head>This is a 3rd level subsection</head>
<p>The <bookmark name="place1">paragraph</bookmark> follows the heading <ppage>8</ppage>in the usual way. This section will contain some play material to see if that works too:</p>
<longquote>
<play>
<stagedir>The play takes place at RNIB. <character>STEPHEN</character> is working at his computer. <character>RACHEL</character> comes in.</stagedir>
<speech>
<speaker>STEPHEN:</speaker>
<spchtext>Hello.</spchtext>
</speech>
<speech>
<speaker>RACHEL:</speaker>
<spchtext>Have you checked my book for me yet? I gave it to you 3 months ago and they are beginning to ask where it is.</spchtext>
</speech>
<speech>
<speaker>STEPHEN:</speaker>
<spchtext><stagedir>Not looking up</stagedir> What?</spchtext>
</speech>
<speech>
<speaker>RACHEL:</speaker>
<pline><stagedir>Resorting to verse</stagedir> Why don't you listen to what I say?</pline>
<pline>Don't you get sufficient pay?</pline>
<stagedir><character>RACHEL</character> looks thoughtful</stagedir>
<stanza>
<pline>Maybe they could raise your salary,</pline>
<pline>So you get as much as Valerie.</pline>
</stanza>
<stanza>
<pline>Another thing which makes it worse,</pline>
<pline>Is the way I have to say extra lines just to get a new verse.</pline>
</stanza>
</speech>
</play>
</longquote>
<p>This fragment is incomplete and is unlikely to reach the West-End. For further details apply to:</p>
<address>
<addline>25 No Through Road,</addline>
<addline>London,</addline>
<addline>Middlesex.</addline>
</address>
<p>This is another paragraph. It contains some computer text, such as <computer>C:\command.com</computer> etc. Now for a boxed item:</p>
<box>
<head>In The Box</head>
<p>This is information inside a box. The box lies outside a paragraph</p>
</box>
<p>This is a paragraph outside the box. There will now be another subsection:</p>
<subsect4>
<head>The Subsection 4</head>
<p>In this subsection there will be a glossary:</p>
<glossary>
<head>Glossary</head>
<glositem>
<term>Computer</term>
<glostext>
<p>The white box on your desk. It is often confused with a television, but can be distinguished by having more buttons.</p>
<p>Can be dangerous.</p>
</glostext>
</glositem>
<glositem>
<term>Buttons</term>
<glostext>
<p>1. The lumps on the front of your coat.</p>
<p>2. The blocks on a keyboard.</p>
</glostext>
</glositem>
</glossary>
<p>This is a paragraph after the glossary. Another subsection follows:</p>
<subsect5>
<head>This is subsection level 5</head>
<p>This level of subsection will be used only rarely, and is in fact the lowest level alowed.</p>
</subsect5>
<subsect5>
<head>Another Subsection 5 heading</head>
<p>This section is the last here.</p>
</subsect5>
</subsect4>
</subsect3>
</subsect2>
</subsect1>
<subsect1>
<head>A New Subsect1</head>
<p>This is a paragraph in a new subsection level 1. There may be end markers in braille before the heading, depending on the options chosen</p>
</subsect1>
</section>
<section>
<head>A New Main Section</head>
<p>In this section there will be some footnotes<noteref>3</noteref><footnote><noteid>3</noteid><notetext>The text of the note is here</notetext></footnote>. The text continues.<subp1>a. This is a subparagraph<noteref>4</noteref><footnote><noteid>4</noteid><notetext>This is another footnote</notetext></footnote> within the main paragraph. It will have its own layout, i.e. an indented start in braille is usual.<subp2>i. This is a level 2 subparagraph.</subp2></subp1></p>
<p>This is text in a nw paragraph after the subparagraph.</p>
<enddetails>
<author>Stephen Phippen</author>
<source>
<sourceelt>Memoirs</sourceelt>
</source>
</enddetails>
<p>This is a paragraph after the end details.</p>
<display>
<displine>This is a display line. It can be used for things such as computer program lines, or for other items which are separated from the normal text.</displine>
<displine>This is another display line.</displine>
</display>
<p>This is a new paragraph. The next display lines appear within it.<display><displine>This is the first displayed line</displine><displine>This is the second displayed line</displine></display>This is normal text after the displayed lines.</p>
<p>A new paragraph. This will now contain a figure:</p>
<figure>
<head>Figure 1</head>
<caption>A cross-section of the Tower of London.</caption>
</figure>
<p>A paragraph after the figure.</p>
<secnotes>
<head>Notes</head>
<p>The following note apply to this section only.</p>
<notelist>
<noteid>1</noteid>
<notetext>This is reported in the paper <i>On the variability in leaf size in roses growing near Peterborough</i>.</notetext>
<noteid>2</noteid>
<notetext>ibid.</notetext>
</notelist>
</secnotes>
<subsect1>
<head>A New Subsection</head>
<subhead>This is a subhead</subhead>
<p>I will now do a list with sub lists:</p>
<list lang="german">
<litem>This is a list item</litem>
<litem>This is another list item</litem>
<list>
<litem>This is a list within a list. I will make the entry go on long enough to get a runover.</litem>
<litem>This is another such item</litem>
</list>
<litem>This is a normal list item</litem>
</list>
<p>This is a normal paragraph after the list.</p>
<p>Here is a letter:</p>
<longquote>
<letter>
<address>
<addline>55 Park Drive</addline>
<addline>Bristol</addline>
</address>
<address>
<addline>97 No Through Road</addline>
<addline>Townham</addline>
<addline>TW12 XD3</addline>
</address>
<date>12 October 2005</date>
<phone>0845 778 551</phone>
<recipient>Dear Sir</recipient>
<p>I am writing to complain about the quality of test documents available for the <acronym>XML</acronym> system.</p>
<p>The text is so silly and obviously done in a rush.</p>
<valediction>Yours faithfully</valediction>
<sender>Mr Sproggitt</sender>
<senderinfo>Secretary, HDF</senderinfo>
<enclosure>enc: Cheque</enclosure>
</letter>
</longquote>
<p>This is a para after the letter.</p>
</subsect1>
</section>
</body>
<back>
<section>
<head>Appendix</head>
<p>This is an appendix.</p>
</section>
<glossary>
<head>Glossary</head>
<glositem>
<term>Function</term>
<glostext>
<p>A relation R such that to every a there is one, and only one b such that aRb.</p>
</glostext>
</glositem>
<glositem>
<term>Relation</term>
<glostext>
<p>A relation on a set X is a subset of X x X.</p>
</glostext>
</glositem>
</glossary>
<bibliography>
<head>Bibliography</head>
<biblist>
<bibentry>
<author>Smith</author>
<publication>The various types of thing which can occur in the county of Cambridgeshire and are coloured red or green (but not both).</publication>
<publication>-- The Second Book of Things: Oxford University Press, London, 1988. Reprinted 1989, 1990.</publication>
</bibentry>
<bibentry>
<author>Watson</author>
<publication>How to solve a Mystery.</publication>
</bibentry>
</biblist>
</bibliography>
<booknotes>
<head>Notes</head>
<notelist>
<noteid>1</noteid>
<notetext>This is the first note in this section of notes at the end of the book. There will be few notes because the book has not content.</notetext>
<noteid>2</noteid>
<notetext>This is note number 2.</notetext>
</notelist>
<notesection>
<head>Notes for Chapter 2</head>
<p>This is a paragraph just in case there is one.</p>
<notelist>
<noteid>3</noteid>
<notetext>This is the first note for chapter 2. <p>This note has a new paragraph in it. It should be formatted correctly, with the right runover.</p> </notetext>
<noteid>4</noteid>
<notetext>This is the second note for chapter 2.</notetext>
</notelist>
</notesection>
</booknotes>
<index>
<head>Index</head>
<ientry1>abacus, 3</ientry1>
<ientry1>baggage, 4, 67</ientry1>
<isect>
<head>b</head>
<ientry1>countries, 5</ientry1>
<ientry2>Brazil, 8</ientry2>
<ientry2>England, 20</ientry2>
<ientry3>London, 21</ientry3>
<ientry2>Japan, 45</ientry2>
</isect>
<ientry1>zero, 0</ientry1>
</index>
</back>
</book>