URL originale : https://books.openedition.org/oep/681
The structural organization of a TEI document
Texte intégral
1All TEI documents are organized in a similar way, no matter what kind of original they represent. We will introduce some of the most commonly encountered variations on this structure by means of some simple examples.
Header, Text, and Divisions
2To begin at the beginning, every TEI document (represented by means of a <TEI> element) has at least two parts: a header (represented by means of a <teiHeader> element) containing metadata describing the document, and the text itself (usually represented by a <text> element). For example:
<TEI xmlns='http://www.tei-c.org/ns/1.0'>
<teiHeader>
<!-- metadata describing a text --> </teiHeader>
<text> <!-- a representation of the text itself --> </text>
</TEI>
3Like every other TEI XML document, this one explicitly states that the elements it contain are by default to be understood as coming from the TEI namespace http://www.tei-c.org/ns/1.0.
4We describe the header in more detail in a subsequent chapter; for the moment we note simply that a minimal header must contain information identifying the document itself (in the <titleStmt>), information about how it is distributed or published (in the <publicationStmt>) and some indication of its origins (in the <sourceDesc>). The <text> element is used to hold an encoded version of the text itself, in which its structure is represented by elements such as <front> (for prefaces etc.) <body> (for the body of the text proper) and <back> (for any appendixes etc.). Within these components, we may also represent further subdivisions such as volumes, parts, chapters etc. using the <div> element.
5For example, here is the start of a minimal TEI version of a famous novel, as it might be distributed by an imaginary digital publisher:
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>The life and opinions of Tristram Shandy, Gentleman: TEI
edition</title>
</titleStmt>
<publicationStmt>
<publisher>Web Head Press</publisher>
<date>2013</date>
</publicationStmt>
<sourceDesc>
<p>Transcribed from the first edition, 1708</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<div type="volume" xml:id="TS01">
<div type="chapter" xml:id="TS0101">
<head>Chap. I</head>
<p>I wish either my father or my mother, or indeed both of them, as they were in duty both equally bound to it, had minded what they were about when they begot me; ...</p>
<!-- remainder of chapter 1 here -->
</div>
<div type="chapter" xml:id="TS0102">
<head>Chap. II</head>
<p> — Then, positively, there is nothing in the question, that I can see, either good or bad. — Then let me tell you, Sir, it was a very unseasonable question at least ...</p>
<!-- remainder of chapter 2 here -->
</div>
<!-- remaining chapters of volume 1 here -->
</div>
<!-- remaining volumes of work here -->
</body>
</text>
</TEI>
6In this example the body of a text contains smaller divisions, themselves containing sub-divisions. Such textual subdivisions have different names in different cultures and in different kinds of document; many western cultures use names such as section, part, book, or chapter (or their equivalents) for these sub-parts of the body, but often in inconsistent or mutually incompatible ways. What is called a part within a book in one text may be called a section within a chapter in another, or a book within a part in a third. Hence, the TEI proposes a single element <div> for any such structural subdivision of the body of a text.
7The <div> element can carry a number of attributes to indicate its function and its properties more exactly. Here, we have used the @type attribute to characterize or classify the content of the element, thus distinguishing the <div> elements containing ‘volumes’ from those containing ‘chapters’. We have also used the @xml:id attribute to provide a unique identifier for each division of the novel.
8This same kind of hierarchic structure may be used for any kind of text. For example, an epic poem divided into books might tag each book as a <div type='book'> ; a play divided into acts and scenes might tag them <div type='act'> and <div type='scene'> respectively; and so on. The values available for use with the @type and @xml:id attributes are not defined by the TEI, but are chosen by the encoder. For @xml:id the values used are arbitrary codes unique to the element on which they appear: they provide a way of labelling the element concerned so that other parts of this or other documents can point to it directly. For @type the values are also arbitrary codes, chosen by the encoder to indicate the function of the <div> concerned. Some commonly encountered values such as chapter or volume are suggested in the Guidelines, but it is left to individual projects using the TEI to define their own taxonomy. It is however easy both to document and to enforce any chosen taxonomy by means of a TEI customisation, as discussed in a subsequent chapter.
9The <div> element is so named because it is a division; it should not therefore be used for something which is complete in itself. If the body of a text is undivided there is no need to provide a single <div> element to contain it. Instead, the <body> element may contain directly one or more of the elements described in the next section.
10A <text> is typically something like a book or an article, but may be anything which it is convenient to regard as a discrete but complete textual object, such as a single poem or archival document, or something as small as a postcard. As an alternative or in addition to the <text> element, the TEI also provides a <facsimile> element which could be used to provide a complementary visual representation, for example as a series of digitized page images. And the TEI also provides ways of representing collections of such things, as discussed in the final section of the next chapter.
Le texte seul est utilisable sous licence Creative Commons - Attribution - Pas d'Utilisation Commerciale - Pas de Modification 4.0 International - CC BY-NC-ND 4.0. Les autres éléments (illustrations, fichiers annexes importés) sont « Tous droits réservés », sauf mention contraire.
What is the Text Encoding Initiative?
Ce livre est cité par
- (2021) Pragmatics & Beyond New Series The Politics of Person Reference. DOI: 10.1075/pbns.320
- Unknown (not yet matched), . (2021) IVITRA Research in Linguistics and Literature Biografies invisibles / Invisible Biographies. DOI: 10.1075/ivitra.28.c18can
- Tibaingana, Anthony. Makombe, Godswill. Kele, Tumo. (2022) New Advances in Postharvest Technology [Working Title]. DOI: 10.5772/intechopen.109172
- Fischer, Frank. Skorinkin, Daniil. (2021) The Palgrave Handbook of Digital Russia Studies. DOI: 10.1007/978-3-030-42855-6_29
- Krämer, Sybille. (2022) Digitalitätsforschung / Digitality Research Digitalisierung als Transformation?. DOI: 10.1007/978-3-662-65350-0_4
- (2021) IVITRA Research in Linguistics and Literature Biografies invisibles / Invisible Biographies. DOI: 10.1075/ivitra.28.18can
- (2021) Performing Arts and Digital Humanities. DOI: 10.1002/9781119855569.refs
- A theatre of places(2019) . DOI: 10.1145/3371140.3371146
- Digital safeguard of laminated historical manuscripts: the treatise “Poem in Rajaz on medicine” as a case study(2020) . DOI: 10.1109/CiSt49399.2021.9357192
- Long term preservation of TEI corpora(2020) . DOI: 10.1145/3423603.3423980
- Truan, Naomi. Romary, Laurent. (2021) Building, Encoding, and Annotating a Corpus of Parliamentary Debates in TEI XML: A Cross-Linguistic Account. Journal of the Text Encoding Initiative. DOI: 10.4000/jtei.4164
- Scholger, Martina. (2019) Taking Note: Challenges of Dealing with Graphical Content in TEI. Journal of the Text Encoding Initiative. DOI: 10.4000/jtei.2800
- Da Rold, Orietta. (2021) Tradition and Innovation in Cataloguing Medieval Manuscripts. Anglia, 139. DOI: 10.1515/ang-2021-0003
- Bekius, Lamyk. (2021) The Reconstruction of the Author’s Movement Through the Text, or How to Encode Keystroke Logged Writing Processes in TEI-XML. Variants. DOI: 10.4000/variants.1245
- Calleja-Puerta, Miguel. Fernández Ortiz, Guillermo. (2023) El ordenador como herramienta para la investigación diplomática: evo-lución y perspectivas. Documenta & Instrumenta - Documenta et Instrumenta, 21. DOI: 10.5209/docu.88103
- Dillen, Wout. Neyt, Vincent. (2016) Digital scholarly editing within the boundaries of copyright restrictions. Digital Scholarship in the Humanities, 31. DOI: 10.1093/llc/fqw011
What is the Text Encoding Initiative?
Ce livre est diffusé en accès ouvert freemium. L’accès à la lecture en ligne est disponible. L’accès aux versions PDF et ePub est réservé aux bibliothèques l’ayant acquis. Vous pouvez vous connecter à votre bibliothèque à l’adresse suivante : https://freemium.openedition.org/oebooks
Si vous avez des questions, vous pouvez nous écrire à access[at]openedition.org
Référence numérique du chapitre
Format
Référence numérique du livre
Format
1 / 3