Text only | Skip links
Skip links||IT Services, University of Oxford
From our previous exercise, we have got a single <div> file representing part of an issue of Punch. The task now is to
  1. turn it into a TEI document with all the mandatory parts
  2. put in the proper metadata
  3. add some more sections
  4. do some more analytical markup
  5. check its a valid TEI document

1. Turn it into a TEI document

Start oXygen and choose the File/New menu item. Select the From templates tab and choose TEI P5 - Lite.

Delete the contents of <body> and insert the <div> containing the poem which you made earlier by doing a copy and paste.

You should have a theoretically complete TEI document now.

2. Put in the proper metadata

To make it a genuine document, fill in the compulsory metadata area for <title>, and say something in <publicationStmt> and <sourceDesc> if you feel strong.

3. Add some more sections

There is a file called prose.xml amongst your documents. Open this, and cut and paste the whole <div> which it contains after the verse <div>. The document should still be well-formed.

4. Check its a valid TEI document

Up in the menu bar, look for the validation button , and click on it. This will validate the document against the TEI Lite schema. Why that one? because of the incantation at the top of the file:
<?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" type="xml"?>
which is processing-instruction supported by oXygen, to indicate to it which schema to use.

Try adding some markup not recognized by TEI Lite, and see the validation fail. For example, surround the name ‘Toby’ at the top of the prose section with <persName>.

5. Do some analytical markup

Now we have a basic TEI document, but there is a lot more we could do it. Try one or more of these:
  • There are many people and places mentioned in the prose; put each one of them into a <name> element; distinguish between people and places by using the type attribute on <name>.
  • Mark the sentences in paragraphs by marking them with <s> elements (or even each word with <w> elements!)
  • The bits of text surrounded with double quotes might be better represented using <q> elements.

Whatever you do, make sure its still valid TEI!

6. A reading knowledge of the TEI

You need to be familiar with reading 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

Sebastian Rahtz. Date: 2008-07-07
Copyright University of Oxford