TEI Absolutely Bare
author: Laurent Romary
source date: Thursday 12th October 2006
language: en
availability: This template file is freely available and you are hereby authorised to copy, modify, and redistribute it in any way without further reference or permissions. When making such modifications, you are strongly recommended to change the present text to include an accurate statement of the licencing conditions applicable to your modified text.

This customization creates a TEI schema with the bare minimum of tags to make a recognizable document. It combines the four basic modules, but removes most of the available elements and changes several attribute classes.

Basic text structure

In this very simple schema, a document may contain <front>, <body> and <back> elements as in standard TEI. However, within these, only the following elements are permitted:

The <list> element may contain a <head> followed by a sequence either of <label>-<item> pairs, or of <item> elements alone.

The <item> and <p> elements have the same structure: either may contain just text, or a mixture of text with <list>, or <title> elements.

Similarly, the <div> element may contain a <head>, followed by a nested <div>, or one or more <p> elements.

The @version attribute on the <TEI> element is removed, as is the @level attribute on the <title> element. Other attributes are also removed as a consequence of the class modifications described below.

The following specification group deletes the unwanted attributes:

<title>
@level

<TEI>
@version

Header structure

A much simplified version of the TEI Header is defined, again by the deletion of many elements. For validity, all that is required within it is the <fileDesc>, which contains only the following elements:

Within the <titleStmt> only a <title> is permitted; within the other two elements only a <p> is permitted. The @default attribute on the <sourceDesc> element is also removed.

<sourceDesc>
@default

Class modifications

Finally three of the TEI attribute classes are simplified. The attributes xml:space, rend, and xml:base are removed from the att.global class, so that this now makes available to all elements only the following attributes: @xml:id, @n, and @xml:lang.

Three un-needed attributes are removed from the att.divLike class so that the <div> element inherits from it only the following attributes: @xml:id, @n, @xml:lang. The attribute class att.declaring is deleted completely, so that none of its members inherit the @decls attribute defined in the unmodified TEI.

att.global.rendition
@rend

att.global
@xml:space
@xml:base

att.fragmentable

att.divLike
@org
@sample

att.declaring

Formal declaration