Moving from P3 to P4
If you are already using TEI P3 DTDs, and wish to upgrade
to the new files, 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
zip 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" >
]>
...
If you want to test your material for XML conformance, you will
first need to convert it to XML. No TEI specific tools are
necessary for this job (but watch out that you don't mess up the
upper/lowercase distinction in your tag and attribute
names!). There is some more information about the process in the
SGML-to-XML FAQ.
Once you have an XML version of your data, the only
change you need make in your TEI driver file will be like this:
<!DOCTYPE TEI.2 SYSTEM "http://www.tei-c.org/Guidelines/DTD/tei2.dtd" [
<!ENTITY % TEI.prose "INCLUDE" >
<!ENTITY % TEI.XML "INCLUDE">
...
]><TEI.2>
...
Once you have downloaded the DTD files and installed them locally,
then you will need to change the URLs used in the examples above
to point to local filestore. If you are using a
catalog file, you will need to update that similarly. Exactly what
changes you will need to make beyond the scope of this page, but
any local XML/SGML expert should be able to assist: if stuck, send
a plea for help to tei-tech@listserv.brown.edu!
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!
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.
Additional tag set for certainty: enabled by
TEI.certainty
teicert2.dtd |
ELEMENTS | Additional Element Set for
Certainty and Responsibility | Chapter 17 |
Additional tag set for language corpora: enabled by
TEI.corpus
teicorp2.dtd |
ELEMENTS | Additional Element Set for Language
Corpora | Chapter 23 |
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 |
Auxiliary DTD for Feature System Declarations
teifsd2.dtd |
DTD | Auxiliary Document Type: Feature System
Declaration | Chapter 26 |
Additional tag set for feature structures: enabled by TEI.fs
teifs2.dtd |
ELEMENTS | Additional Element Set for Feature Structure Annotation | Chapter 16 |
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 |
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 |
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 |
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 |
Additional tag set for Graph Theory: enabled by TEI.nets
teinet2.dtd |
ELEMENTS | Additional Element Set for Graphs,
Networks, and Trees | Chapter 21 |
Auxiliary DTD for Independent Headers
teishd2.dtd |
DTD | Auxiliary Document Type: Independent TEI Header | Chapter 24 |
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 |
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 |
Auxiliary DTD for Tag Set documentation
teitsd2.dtd |
DTD | Auxiliary Document Type: Tag Set
Documentation | Chapter 27 |
Auxiliary tag set for Writing System Declarations
teiwsd2.dtd |
DTD | Auxiliary Document Type: Writing System
Declaration | Chapter 25 |
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.