<TEI>

<TEI> (TEI document) contains a single TEI-conformant document, comprising a TEI header and a text, either in isolation or as part of a teiCorpus element. 4 Default Text Structure 15.1 Varieties of Composite Text
Module textstructure — 4 Default Text Structure
In addition to global attributes In addition to global attributes
version specifies the version number of the TEI Guidelines against which this document is valid.
Status Optional
Datatype

<rng:ref name="data.version"/>
data.version
Values A TEI version number
Used by
May contain
header: teiHeader
iso-fs: fsdDecl
textstructure: text
transcr: facsimile
Declaration

<rng:element name="TEI">
 <rng:ref name="att.global.attributes"/>
 <rng:optional>
  <rng:attribute name="version">
   <rng:ref name="data.version"/>
  </rng:attribute>
 </rng:optional>
 <rng:group>
  <rng:ref name="teiHeader"/>
  <rng:choice>
   <rng:group>
    <rng:oneOrMore>
     <rng:ref name="model.resourceLike"/>
    </rng:oneOrMore>
    <rng:optional>
     <rng:ref name="text"/>
    </rng:optional>
   </rng:group>
   <rng:ref name="text"/>
  </rng:choice>
 </rng:group>
</rng:element>
element TEI
{
   att.global.attributes,
   attribute version { data.version }?,
   ( teiHeader, ( ( model.resourceLike+, text? ) | text ) )
}
Schematron

<s:ns prefix="tei" uri="http://www.tei-c.org/ns/1.0"/>
Schematron

<s:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
Example
<TEI version="1.2.0">
 <teiHeader>
  <fileDesc>
   <titleStmt>
    <title>The shortest TEI Document Imaginable</title>
   </titleStmt>
   <publicationStmt>
    <p>First published as part of TEI P2.</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>
Note
This element is required.