| ## Text Encoding Initiative
# The P4 DTD

1. The TEI P4 DTD files | ## 1. The TEI P4 DTD files From this page you can download current versions for all the files which make up the current version of the TEI DTD. For information about how these DTD fragments should be used and how these files interact, you need to read the Guidelines themselves. For a brief overview of the files in the DTD, please see Chapter 36 of the TEI Guidelines, from which the table below is reproduced. The TEI DTD files can be customized in many different ways, to make large or small DTDs according to need. TEI Lite is one such customization of the whole; its DTD files are at www.tei-c.org/Lite/DTD; Master is another such customization, and there are many others. Full reference information on how to perform such customization (using TEI Lite as an example) is provided in Chapter 29 of the Guidelines. Experimental work is currently underway to investigate the automatic production of Relax NG schemas for use with the TEI Guidelines. ### 1.1. Moving from P3 to P4 If you are still using the P3 DTDs and wish to upgrade you can choose to either use P4 as SGML or P4 as XML. The TEI strongly recommends the latter, and the NEH-funded TEI Migration Task Force has written extensive reports on the process of migrating from P3 to P4 XML. They can be found on what is affectionately called the migration page. If you wish to try the P4 DTDs in your current SGML environment, you can do so by either of the following methods: replace the system identifiers in your local files by a link to the new version at (mutatis mutandis) http://www.tei-c.org/Guidelines/DTD/tei2.dtd (see examples below); download and install all the new dtd files locally, changing the system identifiers to point to these local versions. The complete suite is available as a single archive file. Neither the actual filenames (teicore2.dtd etc.) used nor the method of constructing application specific DTDs has changed with this release. For example, if you currently test files using a driver that begins
    <!DOCTYPE TEI.2 SYSTEM "/home/wherever/mylocalteistuff/tei2.dtd" [
    <!ENTITY % TEI.prose "INCLUDE" >
    ...
    ]><TEI.2>
    ...
and you have not yet changed the contents of home/wherever/mylocalteistuff, then you could experiment with the new DTDs simply by changing your driver file to reference the online version. The file would then begin:
    <!DOCTYPE TEI.2 SYSTEM "http://www.tei-c.org/Guidelines/DTD/tei2.dtd" [
    <!ENTITY % TEI.prose "INCLUDE" >
    ]>
    ...
The TEI editors are particularly anxious to receive reports of errors with documents that were regarded as valid by previous releases of the TEI DTDs, but which the new DTDs will not accept. Send feedback of any kind to editors@tei-c.org, or, if you want to discuss issues raised more widely with other TEI users, to tei-tech@listserv.brown.edu. Thank you! ### 1.2. The TEI DTD files The following tables give for each of the files making up the current release: the filename used in the release directory; the type of declarations contained in the module; the full name of the module, for use in constructing its Formal Public Identifer (FPI) a link to the chapter or section in which it is defined . To make up the Formal Public Identifier, the full name of the module should be prefixed by the string `-//TEI P4//` and the type of declarations contained, and suffixed by the string `//EN`. Thus the FPI for the first file listed below should be `-//TEI P4//ELEMENTS Additional Element Set for Simple Analysis//EN`. Each table corresponds with a single TEI module or `tag set' i.e. a group of related DTD fragments. Tables are listed in alphabetical order. 1, Additional tag set for simple analysis: enabled by TEI.analysis Additional tag set for simple analysis: enabled by TEI.analysis
teiana2.dtd | ELEMENTS | Additional Element Set for Simple Analysis | Chapter 15
teiana2.ent | ENTITIES | Element Classes for Simple Analysis | Chapter 15
2, Core tag sets: enabled when any TEI base is enabled Core tag sets: enabled when any TEI base is enabled
teiback2.dtd | ELEMENTS | Back Matter | Section 7.6
teiclas2.ent | ENTITIES | TEI ElementClasses | Section 3.7
teicore2.dtd | ELEMENTS | Core Elements | Chapter 6
teifron2.dtd | ELEMENTS | Front Matter | Section 7.4
teihdr2.dtd | ELEMENTS | TEI Header | Chapter 5
teistr2.dtd | ELEMENTS | Default Text Structure | Chapter 7
3, Additional tag set for certainty: enabled by TEI.certainty Additional tag set for certainty: enabled by TEI.certainty
teicert2.dtd | ELEMENTS | Additional Element Set for Certainty and Responsibility | Chapter 17
4, Additional tag set for language corpora: enabled by TEI.corpus Additional tag set for language corpora: enabled by TEI.corpus
teicorp2.dtd | ELEMENTS | Additional Element Set for Language Corpora | Chapter 23
5, Base tag set for dictionaries: enabled by TEI.dictionary Base tag set for dictionaries: enabled by TEI.dictionary
teidict2.dtd | ELEMENTS | Base Element Set for Print Dictionaries | Chapter 12
teidict2.ent | ENTITIES | Element Classes for Print Dictionaries | Chapter 12
6, Base tag set for performance texts: enabled by TEI.drama Base tag set for performance texts: enabled by TEI.drama
teidram2.dtd | ELEMENTS | Base Element Set for Drama 2001-12 | Chapter 10
teidram2.ent | ENTITIES | Element Classes for Drama | Chapter 10
7, Additional tag set for figures, tables and formulae: enabled by TEI.figures Additional tag set for figures, tables and formulae: enabled by TEI.figures
teifig2.dtd | ELEMENTS | Additional Element Set for Tables, Formulae, and Graphics | Chapter 22
teifig2.ent | ENTITIES | Formulae Notations and Contents | Chapter 22
8, Auxiliary DTD for Feature System Declarations Auxiliary DTD for Feature System Declarations
teifsd2.dtd | DTD | Auxiliary Document Type: Feature System Declaration | Chapter 26
9, Additional tag set for feature structures: enabled by TEI.fs Additional tag set for feature structures: enabled by TEI.fs
teifs2.dtd | ELEMENTS | Additional Element Set for Feature Structure Annotation | Chapter 16
10, General Base tag set, for use with one or more other base tag sets: enabled by TEI.general General Base tag set, for use with one or more other base tag sets: enabled by TEI.general
teigen2.dtd | ELEMENTS | General Base Element Set | Section 3.4
11, The TEI main DTD The TEI main DTD
tei2.dtd | DTD | Main DTD Driver File | Chapter 3
teigis2.ent | ENTITIES | Generic Identifiers | Section 3.8
teikey2.ent | ENTITIES | TEI Keywords | Section 3.8
12, Additional tag set for Linking and Segmentation: enabled by TEI.linking Additional tag set for Linking and Segmentation: enabled by TEI.linking
teilink2.dtd | ELEMENTS | Additional Element Set for Linking, Segmentation, and Alignment | Chapter 14
teilink2.ent | ENTITIES | Element Classes for Linking, Segmentation, and Alignment | Chapter 14
13, Mixed base tag set, for use with one or more other base tag sets: enabled by TEI.mixed Mixed base tag set, for use with one or more other base tag sets: enabled by TEI.mixed
teimix2.dtd | ELEMENTS | Base Element Set for Mixed Text Types | Section 3.4
14, Additional tag set for Names and Dates: enabled by TEI.names.dates Additional tag set for Names and Dates: enabled by TEI.names.dates
teind2.dtd | ELEMENTS | Additional Element Set for Names and Dates | Chapter 20
teind2.ent | ENTITIES | Element Classes for Names and Dates | Chapter 20
15, Additional tag set for Graph Theory: enabled by TEI.nets Additional tag set for Graph Theory: enabled by TEI.nets
teinet2.dtd | ELEMENTS | Additional Element Set for Graphs, Networks, and Trees | Chapter 21
16, Base tag set for Prose: enabled by TEI.prose Base tag set for Prose: enabled by TEI.prose
teipros2.dtd | ELEMENTS | Base Element Set for Prose | Chapter 8
17, Auxiliary DTD for Independent Headers Auxiliary DTD for Independent Headers
teishd2.dtd | DTD | Auxiliary Document Type: Independent TEI Header | Chapter 24
18, Base tag set for Transcribed Speech: enabled by TEI.spoken Base tag set for Transcribed Speech: enabled by TEI.spoken
teispok2.dtd | ELEMENTS | Base Element Set for Transcriptions of Speech | Chapter 18
teispok2.ent | ENTITIES | Element Classes for Transcriptions of Speech | Chapter 18
19, Additional tag set for Textual Criticism: enabled by TEI.textcrit Additional tag set for Textual Criticism: enabled by TEI.textcrit
teitc2.dtd | ELEMENTS | Additional Element Set for Text-Critical Apparatus | Chapter 19
teitc2.ent | ENTITIES | Element Classes for Critical Apparatus | Chapter 19
20, Base tag sets for Terminological Data: enabled by TEI.terminology Base tag sets for Terminological Data: enabled by TEI.terminology
teiterm2.dtd | ELEMENTS | Base Element Set for Terminological Data | Chapter 13
teiterm2.ent | ENTITIES | Element Classes for Terminological Data | Chapter 13
teite2f.dtd | ELEMENTS | Terminological Databases (Flat) | Chapter 13
teite2n.dtd | ELEMENTS | Terminological Databases (Nested) | Chapter 13
21, Additional tag set for Physical Transcription: enabled by TEI.transcr Additional tag set for Physical Transcription: enabled by TEI.transcr
teitran2.dtd | ELEMENTS | Additional Element Set for Transcription of Primary Sources | Chapter 18
teitran2.ent | ENTITIES | Element Classes for Transcription of Primary Sources | Chapter 18
22, Auxiliary DTD for Tag Set documentation Auxiliary DTD for Tag Set documentation
teitsd2.dtd | DTD | Auxiliary Document Type: Tag Set Documentation | Chapter 27
23, Base tag set for Verse: enabled by TEI.verse Base tag set for Verse: enabled by TEI.verse
teivers2.dtd | ELEMENTS | Base Element Set for Verse | Chapter 9
teivers2.ent | ENTITIES | Element Classes for Verse | Chapter 9
24, Auxiliary tag set for Writing System Declarations Auxiliary tag set for Writing System Declarations
teiwsd2.dtd | DTD | Auxiliary Document Type: Writing System Declaration | Chapter 25
25, Auxiliary tag set for concurrent markup of pages and lines Auxiliary tag set for concurrent markup of pages and lines
teipl2.dtd | DTD | Concurrent Document Type: Pages and Lines | Chapter 31
Two catalog files are provided with the TEI DTD fragments, one (catalog.tei) in SGML Open format; the other (teicatalog.xml) in XML Catalog format: either file may be used to specify the location of copies of the TEI DTD fragments stored locally, as further discussed in Section 2.10.4.