Revision 1830ab7554a22dcbd55face99579cd1587b3f38d authored by raffazizzi on 13 October 2023, 22:53:30 UTC, committed by raffazizzi on 13 October 2023, 22:53:30 UTC
1 parent aa38f38
Raw File
teisample.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="tei.css"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
    <teiHeader>
        <fileDesc>
            <titleStmt>
                <title>The TEI Sample File</title>
            </titleStmt>
            <publicationStmt>
                <p>Unpublished, as yet
                </p>
            </publicationStmt>
            <sourceDesc>
                <p>Derived from a TEI exercise by Lou Burnard and Sebastian Rahtz</p>
            </sourceDesc>
        </fileDesc>
        <revisionDesc>
            <list>
                <item>
                    <date>5 February 2002</date>first attempt</item>
            </list>
        </revisionDesc>
    </teiHeader>
    <text>
        <front>
            <div type="preface">
                <head>PREFACE</head>
                <p>
                    <!-- it starts here -->
                    <!-- there is no <p> -->
                    I have endeavoured in this
                    <emph>Ghostly</emph>
                    little book, to raise the
                    <emph>Ghost</emph>
                    of an xml:idea, which shall not put my readers out of humour with themselves,
                    with each other, with the season, or with me. May it haunt their houses
                    pleasantly, and no one wish to lay it.
                </p>
                <signed>
                    Their faithful Friend and Servant, C.D.
                    <date>December, 1843.</date>
                </signed>
            </div>
        </front>
        <body>
            <div>
                <head>Something Literary</head>
                <div>
                    <head>Marley's Ghost</head>
                    <p>Marley was dead: to begin with. There is no doubt whatever about that. The
                        register of his burial was signed by the clergyman, the clerk, the
                        undertaker, and the chief mourner. Scrooge signed it. And Scrooge's name was
                        good upon 'Change, for anything he chose to put his hand to. Old Marley was
                        as dead as a door-nail.</p>
                </div>
            </div>
            <div>
                <head>Some nonsense</head>
                <div>
                    <head>Some simple markup</head>
                    <p>The
                        <gi>hi</gi>
                        element is used for various forms of highlighting: e.g.
                        <hi rend="bold">bold</hi>,
                        <hi rend="it">italic</hi>
                        and
                        <hi rend="sc">small caps</hi>.
                        <hi rend="sup">superscript</hi>,
                        <hi rend="sub">subscript</hi>,
                        <hi rend="ul">underline</hi>. Generally a
                        <gi>hi</gi>
                        element takes
                        <att>rend</att>, but
                        <hi>you'll be alerted</hi>
                        when it doesn't.
                    </p>
                    <p>The
                        <gi>emph</gi>
                        element is used for linguistic emph<emph>asis</emph>.
                        <soCalled>highlighting</soCalled>
                        (<gi>soCalled</gi>) nor with
                        <mentioned>shouting</mentioned>
                        (<gi>mentioned</gi>),
                        <term>transmogrification</term>, (a technical
                        <gi>term</gi>), for which the
                        <gi>gloss</gi>
                        tag might be used to supply
                        <gloss>a technical definition</gloss>).</p>
                    <p>Now for some links! We will start by cross-referring to the next section.</p>
                    <p>Here is a simple
                        <gi>ptr</gi>
                        to it:
                        <ptr target="P1"/>.</p>
                    <p>Here is a simple
                        <gi>ref</gi>, a
                        <ref target="#P1">reference to it</ref>.</p>
                    <p>An
                        <ref target="http://www.bbc.co.uk">external link</ref>
                        as ref and as ptr:
                        <ptr target="http://www.bbc.co.uk"/>.</p>
                    <p>Here is a figure
                        <graphic url="teixlite.png"/>
                    </p>
                    <p>Here is another figure
                        <figure>
                            <graphic url="bananas.jpg"/><head>The Banana Picture</head>
                        </figure>
                    </p>
                </div>
            </div>
            <div xml:id="P1">
                <head>Some lists</head>
                <p>Various sorts of list are legal within paragraphs...
                    <list type="ordered">
                        <item n="D">Dogs</item>
                        <item n="Z">Zebras</item>
                        <item>Birds</item>
                        <item>Cats</item>
                    </list>
                </p>
                <list type="gloss">
                    <label>100</label>
                    <item>first item
                    </item>
                    <label>200</label>
                    <item>second item
                    </item>
                    <label>300</label>
                    <item>third item
                    </item>
                </list>
                <p>The preceding lists was between paragraphs.</p>
                <p>
                    <list type="unordered">
                        <head>This untyped list has a heading and a nested glosslist
                        </head>
                        <item>first item
                        </item>
                        <item>
                            <list type="gloss">
                                <label>25</label>
                                <item>first item
                                </item>
                                <label>35</label>
                                <item>second item
                                </item>
                                <label>45</label>
                                <item>third item
                                </item>
                            </list>
                        </item>
                        <item>third item
                        </item>
                    </list>
                </p>
                <p>And here's a little something we know you're going to enjoy:
                    <table>
                        <head>Mortality figures from Defoe</head>
                        <row role="data">
                            <cell role="label">St. Leonard's, Shoreditch</cell>
                            <cell>64</cell>
                            <cell>84</cell>
                            <cell>119</cell>
                        </row>
                        <row role="data">
                            <cell role="label">St. Botolph's, Bishopsgate</cell>
                            <cell>65</cell>
                            <cell>105</cell>
                            <cell>116</cell>
                        </row>
                        <row role="data">
                            <cell role="label">St. Giles's, Cripplegate</cell>
                            <cell>213</cell>
                            <cell>421</cell>
                            <cell>554</cell>
                        </row>
                    </table>
                </p>
            </div>
            <div>
                <head>Some more literary examples</head>
                <lg n="1" type="stanza">
                    <l>Opinion governs all mankind,</l>
                    <l rend="indent(2)">Like the blind leading of the blind:</l>
                    <l>And like the world, men's jobbernoles</l>
                    <l rend="indent(1)">Turn round upon their ears the poles,</l>
                    <l>And what they're confidently told</l>
                    <l>By no sense else can be control'd.</l>
                </lg>
                <p>And now for something dramatic...
                </p>
                <stage rend="it">Enter Boteswaine.
                </stage>
                <sp>
                    <speaker rend="it">Botes.</speaker>
                    <p>Downe with the top-Mast: yare, lower, lower, bring her to Try with
                        Maine-course. A plague -
                        <stage rend="it">A cry within. Enter Sebastian, Anthonio &amp; Gonzalo.</stage>
                        vpon this howling: they are lowder then the weather, or our office: yet
                        againe? What do you heere? Shal we giue ore and drowne, haue you a minde to
                        sinke?</p>
                </sp>
                <sp>
                    <speaker rend="it">Sebas.</speaker>
                    <p>Poxe o'your throat, you bawling, blasphemous incharitable Dog.
                    </p>
                </sp>
                <sp>
                    <speaker rend="it">Botes.</speaker>
                    <p>Worke you then.</p>
                </sp>
                <sp>
                    <speaker rend="it">Anth.</speaker>
                    <p>Hang cur, hang, you whoreson insolent Noyse-maker, we are lesse afraid to be
                        drownde, then thou art.</p>
                </sp>
                <sp>
                    <speaker rend="it">Gonz.</speaker>
                    <p>I'le warrant him for drowning, though the Ship were no stronger then a
                        Nutt-shell, and as leaky as an vnstanched wench.</p>
                </sp>
                <sp>
                    <speaker rend="it">Botes.</speaker>
                    <p>Lay her a hold, a hold, set her two courses off to Sea againe, lay her off.</p>
                </sp>
                <stage rend="it">Enter Mariners wet.</stage>
                <sp>
                    <speaker rend="it">Mari.</speaker>
                    <p>All lost, to prayers, to prayers, all lost.</p>
                </sp>
                <sp>
                    <speaker rend="it">Botes.</speaker>
                    <p>What must our mouths be cold?</p>
                </sp>
                <sp>
                    <speaker rend="it">Gonz.</speaker>
                    <p>The King, and Prince, at prayers, let's assist them, for our case is as
                        theirs.</p>
                </sp>
                <sp>
                    <speaker rend="it">Sebas.</speaker>
                    <p>I'am out of patience.
                    </p>
                </sp>
            </div>
        </body>
    </text>
</TEI>
back to top