<attDef>
<attDef> (屬性定義) 包含單一屬性的定義。 [22.4.5 Attribute List Specification] | |||||||||||||||||
組件 | tagdocs — Documentation Elements | ||||||||||||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.identified (@ident, @predeclare, @module, @status) (att.combinable (@mode) (att.deprecated (@validUntil)) )
| ||||||||||||||||
俱乐部会员 | |||||||||||||||||
可包含在於 | tagdocs: attList | ||||||||||||||||
可包含 | |||||||||||||||||
宣告 |
element attDef { att.global.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, att.identified.attributes, att.combinable.attributes, att.deprecated.attributes, attribute usage { "req" | "mwa" | "rec" | "rwa" | "opt" }?, attribute ns { data.namespace }?, ( ( model.glossLike | model.descLike )*, datatype?, constraintSpec*, defaultVal?, ( valList | valDesc+ )?, exemplum*, remarks* ) } | ||||||||||||||||
Schematron | <s:assert test=" @mode eq 'change' or @mode eq 'delete' or tei:datatype or tei:valList[@type='closed'] ">Attribute: the definition of the @<s:value-of select="@ident"/> attribute in the <s:value-of select="ancestor::*[@ident][1]/@ident"/> <s:value-of select="' '"/> <s:value-of select="local-name(ancestor::*[@ident][1])"/> should have a closed valList or a datatype</s:assert> | ||||||||||||||||
例子 | <attDef usage="rec" ident="type"> <desc>具體指定慣例上使用的分部名稱,例如: <val>幕</val>, <val>卷</val>, <val>冊</val>, <val>節</val>, <val>篇章</val>, 等。</desc> <datatype> <rng:text/> </datatype> </attDef> |