<dataRef>
<dataRef> identifies the datatype of an attribute value, either by referencing an item in an externally defined datatype library, or by pointing to a TEI-defined data specification [22.5.3.1 Datatypes] | |||||||||||||||||||||||||
モジュール | tagdocs — Documentation Elements | ||||||||||||||||||||||||
属性 | att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source))
| ||||||||||||||||||||||||
クラブのメンバー | |||||||||||||||||||||||||
上位 | |||||||||||||||||||||||||
下位 | tagdocs: dataFacet | ||||||||||||||||||||||||
解説 | Only one of the attributes key, name, and ref may be used. dataFacet children are only allowed when dataRef refers with name to a datatype from the specification XML Schemas: Part 2: Datatypes. restriction is only permitted when dataRef uses the name attribute. | ||||||||||||||||||||||||
例 | |||||||||||||||||||||||||
例 | |||||||||||||||||||||||||
例 | |||||||||||||||||||||||||
Schematron | <sch:rule context="tei:dataRef[tei:dataFacet]"> <sch:assert test="@name" role="nonfatal">Data facets can only be specified for references to datatypes specified by XML Schemas: Part 2: Datatypes</sch:assert> </sch:rule> | ||||||||||||||||||||||||
Schematron | <sch:rule context="tei:dataRef[tei:dataFacet]"> <sch:report test="@restriction" role="nonfatal">The attribute restriction cannot be used when dataFacet elements are present.</sch:report> </sch:rule> | ||||||||||||||||||||||||
Schematron | <sch:rule context="tei:dataRef"> <sch:report test="@restriction and not(@name)" role="fatal">The attribute restriction can only be used with a name attribute.</sch:report> </sch:rule> | ||||||||||||||||||||||||
Content model | <content> | ||||||||||||||||||||||||
宣言 | <rng:element name="dataRef"> element dataRef { 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 key { teidata.xmlName }? | attribute name { teidata.xmlName }? | attribute ref { teidata.pointer }? ), attribute restriction { teidata.pattern }?, dataFacet* } |