<constraint>

<constraint> (constraint rules) the formal rules of a constraint [22.4.4 Element Specifications]
Módulotagdocs — Documentation Elements
Atributosatt.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))
Contenido en
Puede contenerANY
Declaración

<rng:element name="constraint">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:zeroOrMore>
  <rng:choice>
   <rng:text/>
   <rng:ref name="macro.anyXML"/>
  </rng:choice>
 </rng:zeroOrMore>
</rng:element>
element constraint
{
   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,
   ( text | macro.anyXML )*
}
Ejemplo
<constraintSpec ident="isoconstraint"
 scheme="isoschematron">

 <constraint>
  <s:assert test="tei:fileDesc/tei:titleStmt/tei:title[@type='main']"> a main title must be supplied
  </s:assert>
 </constraint>
</constraintSpec>
Ejemplo
<constraintSpec ident="local"
 scheme="private">

 <constraint>
   (output = (ident(title) ident(author) "You must supply a title or an author"))
 </constraint>
</constraintSpec>