<constraintDecl>
<constraintDecl> (constraint declaration) contains declarations pertaining to formal constraints expressed elsewhere in constraintSpec elements [23.5.2 Additional Constraints] | |||||||||||||||||
組件 | tagdocs — Documentation Elements | ||||||||||||||||
屬性 |
|
||||||||||||||||
俱乐部会员 | |||||||||||||||||
可包含在於 |
header: encodingDesc
tagdocs: schemaSpec
|
||||||||||||||||
可包含 | ANY | ||||||||||||||||
例子 | |||||||||||||||||
Schematron |
<sch:rule context="/*[ count( //tei:constraintDecl ) gt 1 ]"> <sch:let name="schemes" value="//tei:constraintDecl[ not(ancestor::*[local-name(.) eq 'egXML'] ) ]/@scheme"/> <sch:let name="disctinct_schemes" value="distinct-values( $schemes )"/> <sch:assert test="count( $schemes ) eq count( $disctinct_schemes )"> Each <constraintDecl> element should have a @scheme attribute that is distinct from that of all the other <constraintDecl>s. </sch:assert> </sch:rule> |
||||||||||||||||
Content model |
<content> |
||||||||||||||||
宣告 |
<rng:element name="constraintDecl"> element constraintDecl { att.global.attributes, att.global.analytic.attributes, att.global.change.attributes, att.global.facs.attributes, att.global.linking.attributes, att.global.rendition.attributes, att.global.responsibility.attributes, att.global.source.attributes, attribute scheme { "schematron" | teidata.enumerated }, attribute queryBinding { "exslt" | "stx" | "xslt" | "xslt2" | "xslt3" | "xpath" | "xpath2" | "xpath3" | "xpath31" | "xquery" | "xquery3" | "xquery31" | teidata.enumerated }?, ( ( model.identEquiv | model.descLike )*, anyElement_constraintDecl_4* ) } |