<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 The version of the TEI scheme
Status Optional
Datatype

<rng:data type="decimal"/>
xsd:decimal
Values A number identifying the version of the TEI guidelines
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" a:defaultValue="5.0">
   <rng:data type="decimal"/>
  </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 { xsd:decimal }?,
   ( teiHeader, ( ( model.resourceLike+, text? ) | text ) )
}

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

<s:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
Example
<TEI>
 <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.