<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" module="tagdocs" xml:id="gi-constraint" ident="constraint">
  <gloss versionDate="2009-06-10" xml:lang="en">constraint rules</gloss>
  <gloss versionDate="2024-02-28" xml:lang="ja">制約規則</gloss>
  <desc versionDate="2009-06-10" xml:lang="en">the formal rules of a constraint</desc>
  <desc versionDate="2024-02-24" xml:lang="ja">形式的な制約規則</desc>
  <classes>
    <memberOf key="att.global"/>
    </classes>
  <content>
    <alternate minOccurs="0" maxOccurs="unbounded">
      <textNode/>
      <anyElement/>
    </alternate>
  </content>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-constraint-egXML-uq">
      <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>
    </egXML>
  </exemplum>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-constraint-egXML-mb">
      <constraintSpec ident="local" scheme="private">
        <constraint> 
(output = (ident(title) ident(author) "You must supply a title or an author"))
        </constraint>
      </constraintSpec>
    </egXML>
  </exemplum>
  <listRef>
    <ptr target="#TDTAG"/>
  </listRef>
</elementSpec>
