TEI: Guidelines for Electronic Text Encoding and Interchange

P5 Version 4.10.2. Last updated on 4th September 2025, revision bcfa98f42

<constraint>

<constraint> (constraint rules) the formal rules of a constraint [23.5 Element Specifications]
Module tagdocs — Documentation Elements
Attributes
Contained by
tagdocs: constraintSpec
May contain ANY
Example
<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>
Example
<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>
Schema Declaration
<rng:element name="constraint">
<rng:ref name="att.global.attributes"/>
<rng:ref name="att.global.analytic.attributes"/>
<rng:ref name="att.global.change.attributes"/>
<rng:ref name="att.global.facs.attributes"/>
<rng:ref name="att.global.linking.attributes"/>
<rng:ref name="att.global.rendition.attributes"/>
<rng:ref name="att.global.responsibility.attributes"/>
<rng:ref name="att.global.source.attributes"/>
<rng:zeroOrMore>
<rng:choice>
<rng:text/>
<rng:ref name="anyElement_constraint_5"/>
</rng:choice>
</rng:zeroOrMore>
</rng:element>
element constraint
{
 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,
 ( text | anyElement_constraint_5 )*
}

[English] [Deutsch] [Español] [Italiano] [Français] [日本語] [한국어] [中文]



TEI Guidelines P5 Version 4.10.2. Last updated on 4th September 2025, revision bcfa98f42. This page generated on 2025年09月04日T16:27:03Z.

AltStyle によって変換されたページ (->オリジナル) /