Text only | Skip links
Skip links||IT Services, University of Oxford

From our earlier exercise, we have a basic TEI document, which validates against the ‘tei_all’ schema. But there is a lot more we could do it! There are people, places, and dates mentioned in the prose. Let's try to mark those up as well! This exercise intentionally gives you less help, since you are old hands at using oXygen now!

1. People and Places

  • For each name you can recognize (sometimes they are already marked with a <hi> element, put it into a <name> element; distinguish between people and places by using the type attribute on <name>. eg
    <p>The scene opens at a party given by
    <name type="person">Potiphar</name> in <name type="place">Venice</name>.</p>
  • One of the paragraphs talks about an event of 1873. This needs marking with a <date> element with a when attribute.
  • The characters Joseph and Potiphar appear often. Make a new <listPerson> element in the header inside <sourceDesc> and create <person> elements for Joseph and Potiphar, giving them xml:id attributes. Link the occurrences of these names to the person using the ref attribute. e.g.: <person xml:id="JO"> is pointed to by
    <name ref="#JO">Joseph</name>
  • Create a <listPlace> element, also in <sourceDesc> and include <place> elements and point to them from any <placeName>s you've marked.

The point is to experiment with what elements are allowed where and what they enable you to encode. Whatever you do, though, make sure its still valid TEI!

2. Save your file!

Just a reminder to make sure you have saved your file before you finish! Perhaps save it as ‘exercise4.xml’.

3. Other things to try ...

  1. Attempt to transform your document to HTML or PDF (Document -> Transformation -> Apply Transformation Scenario). It may or may not work depending on how your system is set up. However, if it does, look at how the document is rendered and what markup results in what presentation.
  2. If you shut down the various views on the left and right of the editor earlier, experiment with adding some of them back from the ‘Perspective -> Show View’ menu. Particularly look at the ‘outline’, ‘model’, ‘elements’, and ‘attributes’ views.
  3. If you get bored experimenting transformation and with adding <person> and <place> information, then familiarise yourself with the TEI Guidelines. Start by visiting http://www.tei-c.org/Guidelines/P5/ and make sure you can
    • See the PDF version of the entire Guidelines
    • Browse the chapters of the Guidelines in English
    • (Browse the chapters of the Guidelines in another language, if you need)
    • Navigate the element catalogue at http://www.tei-c.org/release/doc/tei-p5-doc/en/html/REF-ELEMENTS.html and follow the reference sections.
    • Jump around the reference materials following links


Date: April 2009
Copyright University of Oxford