Skip to content

<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.

Module textstructureDSCCDEF

Attributes

@versionspecifies the version number of the TEI Guidelines against which this document is valid.
Status
Optional
Datatype
teidata.version

Classes and content

Member of
May contain

header

iso-fs

linking

textstructure

Contained by

Note

As with all elements in the TEI scheme (except egXML) this element is in the TEI namespace (see 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".

Examples

<TEI version="3.3.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>
<TEI version="2.9.1">
  <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>

Content model

<content>
    
    <sequence>
      <elementRef key="teiHeader"/>
      <alternate>
        <sequence>
          <classRef key="model.resource" minOccurs="1" maxOccurs="unbounded"/>
          <elementRef key="TEI" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
        <elementRef key="TEI" minOccurs="1" maxOccurs="unbounded"/>
      </alternate>
    </sequence>
  </content>