<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright TEI Consortium. 
Dual-licensed under CC-by and BSD2 licences 
See the file COPYING.txt for details
$Date$
$Id$
-->
<?xml-model href="http://tei.oucs.ox.ac.uk/jenkins/job/TEIP5/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:rng="http://relaxng.org/ns/structure/1.0" module="tagdocs" ident="constraint">
  <gloss versionDate="2009-06-10" xml:lang="en">constraint rules</gloss>
  <desc versionDate="2009-06-10" xml:lang="en">the formal rules of a constraint</desc>
  <classes>
    <memberOf key="att.global"/>
  </classes>
  <content>
    <rng:zeroOrMore>
      <rng:choice>
        <rng:text/>
        <rng:ref name="macro.anyXML"/>
      </rng:choice>
    </rng:zeroOrMore>
  </content>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
      <constraintSpec ident="isoconstraint" scheme="isoschematron">
	  <constraint>
	    <assert  xmlns="http://purl.oclc.org/dsdl/schematron"
		test="tei:fileDesc/tei:titleStmt/tei:title[@type='main']"> a main title must be supplied
	    </assert>
	</constraint>
      </constraintSpec>
    </egXML>
  </exemplum>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
      <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>
