<datatype>

<datatype> (datatype) 指明屬性的公開屬性值,參照到任何所選擇的模型語言所定義的資料類型。 [1.4.2 Datatype Specifications 22.5.3 Attribute List Specification]
組件 tagdocs — Documentation Elements
屬性
minOccurs⚓︎ (出現次數最小值) 指出該資料類型在所定義的屬性說明中可能出現的最少次數 。
Derived from att.repeatable
狀態 非必備的
資料類型 teidata.count
預設值 1
maxOccurs⚓︎ (出現次數最大值) 指出該資料類型在所定義的屬性說明中可能出現的最多次數。
Derived from att.repeatable
狀態 非必備的
資料類型 teidata.unboundedCount
預設值 1
可包含在於
tagdocs: attDef
可包含 ANY

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.

例子
<datatype>
 <dataRef name="token"/>
</datatype>
例子
<datatype minOccurs="2"
 maxOccurs="unbounded">

 <dataRef key="teidata.pointer"/>
</datatype>
例子
<datatype>
 <dataRef key="teidata.enumerated"/>
</datatype>
Content model
<content>
 <alternate>
  <elementRef key="dataRef"/>
  <anyElement require="http://relaxng.org/ns/structure/1.0"/>
 </alternate>
</content>
宣告
<rng:element name="datatype">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:optional>
  <rng:attribute name="minOccurs"
   a:defaultValue="1">

   <rng:ref name="teidata.count"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="maxOccurs"
   a:defaultValue="1">

   <rng:ref name="teidata.unboundedCount"/>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:ref name="dataRef"/>
  <rng:ref name="anyElement_datatype_5"/>
 </rng:choice>
</rng:element>
element datatype
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   attribute minOccurs { teidata.count }?,
   attribute maxOccurs { teidata.unboundedCount }?,
   ( dataRef | anyElement_datatype_5 )
}