Skip to content

<datatype>

datatype

specifies the declared value for an attribute, by referring to any datatype defined by the chosen schema language.

Module tagdocsDTYPESTDATT

Attributes

@minOccursindicates the minimum number of times this datatype may occur in an instance of the attribute being defined.
Status
Datatype
teidata.count
@maxOccursindicates the maximum number of times this datatype may occur in an instance of the attribute being defined.
Status
Datatype
teidata.unboundedCount

Classes and content

May contain

tagdocs

Contained by

tagdocs

Note

In the TEI scheme, most datatypes are expressed using pre-defined TEI macros, which map a name in the form teidata.xxxx to a datatype defined by RELAX NG or the W3C Schema Language.

Example

The encoding in the following example requires that the attribute being defined contain at least two URIs in its value, as is the case for the @target attribute of join.

<datatype minOccurs="2" maxOccurs="unbounded">
  <dataRef key="teidata.pointer"/>
</datatype>

Content model

<content>
    <alternate>
      <elementRef key="dataRef"/>
      <anyElement require="http://relaxng.org/ns/structure/1.0"/>
    </alternate>
  </content>