Clarity for lexicographers. Stability for data. Compatibility for the future.
10.1.1. <TEI>
<TEI> (TEI document) contains a single TEI-conformant document, combining a single TEI header with one or more members of the model.resource class. Multiple <TEI> elements may be combined within a <TEI> (or <teiCorpus>) element. [4. Default Text Structure16.1. Varieties of Composite Text]
Major editions of the Guidelines have long been informally referred to by a name made up of the letter P (for Proposal) followed by a digit. The current release is one of the many releases of the fifth major edition of the Guidelines, known as P5. This attribute may be used to associate a TEI document with a specific release of the P5 Guidelines, in the absence of a more precise association provided by the source attribute on the associated <schemaSpec>.
As with all elements in the TEI scheme (except <egXML>) this element is in the TEI namespace (see 5.7.2. Namespaces). Thus, when it is used as the outermost element of a TEI document, it is necessary to specify the TEI namespace on it. This is customarily achieved by including http://www.tei-c.org/ns/1.0 as the value of the XML namespace declaration (xmlns), without indicating a prefix, and then not using a prefix on TEI elements in the rest of the document. For example: <TEI version="4.8.1" xml:lang="it" xmlns="http://www.tei-c.org/ns/1.0">.
Example
<TEI version="3.3.0" xmlns="http://www.tei-c.org/ns/1.0"><teiHeader><fileDesc><titleStmt><title>The shortest TEI Document Imaginable</title></titleStmt><publicationStmt><p>First published as part of TEI P2, this is the P5
version using a namespace.</p></publicationStmt><sourceDesc><p>No source: this is an original work.</p></sourceDesc></fileDesc></teiHeader><text><body><p>This is about the shortest TEI document imaginable.</p></body></text></TEI>
Example
<TEI version="2.9.1" xmlns="http://www.tei-c.org/ns/1.0"><teiHeader><fileDesc><titleStmt><title>A TEI Document containing four page images </title></titleStmt><publicationStmt><p>Unpublished demonstration file.</p></publicationStmt><sourceDesc><p>No source: this is an original work.</p></sourceDesc></fileDesc></teiHeader><facsimile><graphic url="page1.png"/><graphic url="page2.png"/><graphic url="page3.png"/><graphic url="page4.png"/></facsimile></TEI>