<constraint>
constraint rules
the formal rules of a constraint
Module tagdocsTDTAG
Attributes
Global and inherited attributes:
Classes and content
- May contain
Character data
- character data
- Contained by
tagdocs
Examples
<constraintSpec ident="isoconstraint" scheme="schematron">
<constraint>
<sch:rule context="tei:constraint">
<sch:assert test="tei:fileDesc/tei:titleStmt/tei:title[ @type eq 'main']">A main title must be supplied.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec ident="local" scheme="private">
<constraint>
(output = (ident(title) ident(author) "You must supply a title or an author"))</constraint>
</constraintSpec>
Content model
<content>
<alternate minOccurs="0" maxOccurs="unbounded">
<textNode/>
<anyElement/>
</alternate>
</content>