tei:schemaSpec

(schema specification) generates a TEI-conformant schema and documentation
for it. [2.3. The Encoding Description 22.2. Modules and Schemas 23.5.1. Making a Unified
ODD]

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
ana restriction of list of xs:anyURI optional
(analysis) indicates one or more elements containing interpretations of
the element on which the ana attribute appears.
cert union of(xs:double, restriction of xs:token) optional
(certainty) signifies the degree of certainty associated with the
intervention or interpretation.
change restriction of list of xs:anyURI optional
points to one or more change elements documenting a state or revision
campaign to which the element bearing this attribute and its children have been assigned
by the encoder.
copyOf xs:anyURI optional
points to an element of which the current element is a
copy.
corresp restriction of list of xs:anyURI optional
(corresponds) points to elements that correspond to the current element in
some way.
docLang restriction of list of union of(xs:language, restriction of xs:token) optional
(documentation language) specifies which languages to use when creating
documentation if the description for an element, attribute, class or macro is available
in more than one language
exclude restriction of list of xs:anyURI optional
points to elements that are in exclusive alternation with the current
element.
facs restriction of list of xs:anyURI optional
(facsimile) points to all or part of an image which corresponds with the
content of the element.
ident xs:Name required
supplies the identifier by which this element may be
referenced.
mode restriction of xs:token add optional
specifies the effect of this declaration on its parent
object.
module xs:NCName optional
supplies a name for the module in which this object is to be
declared.
n xs:string optional
(number) gives a number (or other label) for an element, which is not
necessarily unique within the document.
next xs:anyURI optional
points to the next element of a virtual aggregate of which the current
element is part.
ns xs:anyURI http://www.tei-c.org/ns/1.0 optional
(namespace) specifies the namespace to which this element
belongs
predeclare xs:boolean false optional
says whether this object should be predeclared in the tei infrastructure
module.
prefix xs:NCName optional
specifies a default prefix which will be prepended to all patterns
relating to TEI elements, unless otherwise stated.
prev xs:anyURI optional
(previous) points to the previous element of a virtual aggregate of which
the current element is part.
rend restriction of list of restriction of xs:token optional
(rendition) indicates how the element in question was rendered or
presented in the source text.
rendition restriction of list of xs:anyURI optional
points to a description of the rendering or presentation used for this
element in the source text.
resp restriction of list of xs:anyURI optional
(responsible party) indicates the agency responsible for the intervention
or interpretation, for example an editor or transcriber.
sameAs xs:anyURI optional
points to an element that is the same as the current
element.
select restriction of list of xs:anyURI optional
selects one or more alternants; if one alternant is selected, the
ambiguity or uncertainty is marked as resolved. If more than one alternant is selected,
the degree of ambiguity or uncertainty is marked as reduced by the number of alternants
not selected.
source xs:anyURI optional
specifies the source from which declarations and definitions for the
components of the object being defined may be obtained.
start restriction of list of xs:Name TEI optional
specifies entry points to the schema, i.e. which patterns may be used as
the root of documents conforming to it.
status restriction of xs:token draft optional
describes the status of a document either currently or, when associated
with a dated element, at the time indicated. Sample values include: 1] approved; 2]
candidate; 3] cleared; 4] deprecated; 5] draft; 6] embargoed; 7] expired; 8] frozen; 9]
galley; 10] proposed; 11] published; 12] recommendation; 13] submitted; 14] unfinished;
15] withdrawn
style xs:string optional
contains an expression in some formal style definition language which
defines the rendering or presentation used for this element in the source
text
synch restriction of list of xs:anyURI optional
(synchronous) points to elements that are synchronous with the current
element.
targetLang union of(xs:language, restriction of xs:token) optional
(target language) specifies which language to use when creating the
objects in a schema if names for elements or attributes are available in more than one
language
validUntil xs:date optional
provides a date before which the construct being defined will not be
removed.
xml:base xs:anyURI optional
provides a base URI reference with which applications can resolve relative URI references into absolute URI references.
xml:id xs:ID optional
(identifier) provides a unique identifier for the element bearing the attribute.
xml:lang union of(xs:language, restriction of xs:token) optional
(language) indicates the language of the element content using a tag generated according to BCP 47.
xml:space restriction of xs:token optional
signals an intention about how white space should be managed by applications.

Used By

Source

<xs:element name="schemaSpec">
  <xs:annotation>
    <xs:documentation>(schema specification) generates a TEI-conformant schema and documentation for it. [2.3. The Encoding Description 22.2. Modules and Schemas 23.5.1. Making a Unified ODD]</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:group ref="tei:model.glossLike"/>
        <xs:group ref="tei:model.descLike"/>
      </xs:choice>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:group ref="tei:model.oddRef"/>
        <xs:group ref="tei:model.oddDecl"/>
      </xs:choice>
    </xs:sequence>
    <xs:attributeGroup ref="tei:att.global.attributes"/>
    <xs:attributeGroup ref="tei:att.identified.attributes"/>
    <xs:attributeGroup ref="tei:att.namespaceable.attributes"/>
    <xs:attributeGroup ref="tei:att.readFrom.attributes"/>
    <xs:attributeGroup ref="tei:att.docStatus.attributes"/>
    <xs:attribute name="start" default="TEI">
      <xs:annotation>
        <xs:documentation>specifies entry points to the schema, i.e. which patterns may be used as the root of documents conforming to it.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction>
          <xs:simpleType>
            <xs:list itemType="xs:Name"/>
          </xs:simpleType>
          <xs:minLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="prefix" type="xs:NCName">
      <xs:annotation>
        <xs:documentation>specifies a default prefix which will be prepended to all patterns relating to TEI elements, unless otherwise stated.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="targetLang">
      <xs:annotation>
        <xs:documentation>(target language) specifies which language to use when creating the objects in a schema if names for elements or attributes are available in more than one language</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:union memberTypes="xs:language">
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value=""/>
            </xs:restriction>
          </xs:simpleType>
        </xs:union>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="docLang">
      <xs:annotation>
        <xs:documentation>(documentation language) specifies which languages to use when creating documentation if the description for an element, attribute, class or macro is available in more than one language</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction>
          <xs:simpleType>
            <xs:list>
              <xs:simpleType>
                <xs:union memberTypes="xs:language">
                  <xs:simpleType>
                    <xs:restriction base="xs:token">
                      <xs:enumeration value=""/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:union>
              </xs:simpleType>
            </xs:list>
          </xs:simpleType>
          <xs:minLength value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample