TEI: P5 Guidelines


Contents

P5, the current version of the TEI Guidelines, was officially released on 2 November 2007 and since then has had maintenance and feature enhancement releases every few months. P5 is a major revision of the TEI Guidelines that offers many new and improved features. Although P5 is very different from P4, both in its technical details and in many of its encoding provisions, migration from P4 to P5 is largely automatable using readily available tools. The TEI provides information and advice on migration, and has also established a page on the TEI wiki where TEI users can contribute migration tools and stylesheets.

Get the P5 Guidelines

The TEI Guidelines, including the TEI schemas, the TEI source code, and the prose documentation, are published as open source software. They can be accessed and downloaded in a variety of forms, depending on how you want to use them.

Read online documentation
The text of the Guidelines may be read online.
Download a PDF or ebook version
Get and install a local copy
The source code and other TEI materials (including beta and experimental releases) can be downloaded from Sourceforge; more detailed instructions are available for downloading and using the P5 package and other materials. The files comprising the most stable recent release of the TEI materials can also be accessed at http://www.tei-c.org/release/ and are available as Debian packages at http://tei.oucs.ox.ac.uk/teideb/.
Build a schema from the source
You can also build TEI schemas and documentation (including customized versions) using Roma. Detailed instructions for using Roma and for installing the command-line version are available.
Other points of access

The TEI schemas are now distributed with the <oXygen/> XML editor, together with a set of basic TEI templates.

Source and data support files for TEI Guidelines

In addition to the schema modules and example customizations generated for each release of the Guidelines, a set of files are provided in the xml/tei/odd/ directory which are for use by those writing TEI tools such as editors or visualizations.

p5attlist.txt
This is a text file with a comma-separated cataligue of all the attributes available on TEI elements, list the element or class name, the attribute name, the datatype, and an indication ("multiple" or "single") as to whether it can contain multiple values, e.g.,
att.ascribed,who,data.pointer,multiple
p5subset.json
This is a representation of all TEI modules, classes, elements and attributes (with their descriptions) in JSON format for consumption by Javascript tools in web applications. For example, this fragment provides summary information about the <ab> element:
{"ident":"ab", "module":"linking", "desc":"(anonymous block) contains any arbitrary component-level unit of text, acting as an anonymous container for phrase or inter level elements analogous to, but without the semantic baggage of, a paragraph. []", "classes":[{"att.global":"atts"},{"model.pLike":"model"},{"att.typed":"atts"},{"att.declaring":"atts"}], "model":"MIXED"}
p5subset.xml
This is a copy of the reference component of the TEI source, extracting all the <elementSpec> , <classSpec> , <macroSpec> and <moduleSpec> elements, with descriptions. It does not include the text of the chapters of the Guidelines, and is intended for use by ODD processors which need to access all of the TEI components in a convenient single file.
stripspace.xsl.model
This is a fragmeht of XSL which can be added to any transformation which is being applied to a TEI document. It consists of a <xsl:strip-space> element which lists all the elements which can not contain character data. This tells the processor it can ignore white space around child components of these elements.