<datatype> 属性値の型を,当該スキーマ中のデータ型を参照して示す. 1.4.2 Datatype Macros 22.4.5 Attribute List Specificationモジュール tagdocs — 22 Documentation Elements 属性 minOccurs (minimum number of occurences) indicates the minimum number of times this datatype may
occur in the specification of the attribute being defined maxOccurs (maximum number of occurences) indicates the maximum number of times this datatype may
occur in the specification of the attribute being defined状態 任意 データ型 XML表記 <rng: choice > <rng: ref name ="data.count "/> <rng: value > unbounded</rng: value > </rng: choice >
data.count | "unbounded"
当該モジュールを使用するもの attDef 下位 空要素 宣言 XML表記 <rng: element name ="datatype "> <rng: ref name ="att.global.attributes "/> <rng: optional > <rng: attribute name ="minOccurs " a:defaultValue ="1 "> <rng: ref name ="data.count "/> </rng: attribute > </rng: optional > <rng: optional > <rng: attribute name ="maxOccurs " a:defaultValue ="1 "> <rng: choice > <rng: ref name ="data.count "/> <rng: value > unbounded</rng: value > </rng: choice > </rng: attribute > </rng: optional > <rng: zeroOrMore > <rng: group > <rng: ref name ="macro.schemaPattern "/> </rng: group > </rng: zeroOrMore > </rng: element >
element datatype
{
att.global.attributes ,
attribute minOccurs { data.count }?,
attribute maxOccurs { data.count | "unbounded" }?,
macro.schemaPattern *
} 例 <datatype > <rng: data type ="token "/> </datatype >
例 <datatype > <rng: ref name ="data.enumerated "/> </datatype >
例 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 targets attribute of
<join> .
<datatype minOccurs ="2 " maxOccurs ="unbounded "> <rng: ref name ="data.pointer "/> </datatype >
解説 In the TEI scheme, most datatypes are expressed using
pre-defined TEI macros, which map a name in the form
data.xxxx to a RelaxNG or WSD defined datatype.