<constraintDecl>
<constraintDecl> (constraint declaration) contains declarations pertaining to formal constraints expressed elsewhere in constraintSpec elements [23.5.2 Additional Constraints] | |||||||||||||||||||||
Module | tagdocs — Documentation Elements | ||||||||||||||||||||
Attributes |
|
||||||||||||||||||||
Member of | |||||||||||||||||||||
Contained by |
header: encodingDesc
tagdocs: schemaSpec
|
||||||||||||||||||||
May contain | ANY | ||||||||||||||||||||
Example | |||||||||||||||||||||
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> |
||||||||||||||||||||
Schema Declaration |
<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* ) } |