<?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" module="tagdocs"
	     ident="sequence"
	     xmlns:sch="http://purl.oclc.org/dsdl/schematron" >
  <desc versionDate="2013-11-21" xml:lang="en">sequence of references</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="model.contentPart"/>
    <memberOf key="att.repeatable"/>
  </classes>
  <content>
      <classRef key="model.contentPart"
		maxOccurs="unbounded"/>
  </content>
  <constraintSpec ident="sequencechilden" scheme="isoschematron">
    <constraint>
      <sch:assert test="count(*)&gt;1">The sequence element must have at least two child elements</sch:assert>
    </constraint>
  </constraintSpec>
  <attList>
    <attDef ident="preserveOrder">
      <desc versionDate="2013-11-21" xml:lang="en">if true, indicates that
	      the order in which component elements of a sequence
	      appear in a document must correspond to the order in
	      which they are given in the content model.</desc>
      <datatype><rng:ref xmlns:rng="http://relaxng.org/ns/structure/1.0"  name="data.truthValue"/></datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:lang="en">
      <content>
        <sequence>
          <alternate>
            <elementRef key="name"/>
            <elementRef key="persName"/>
          </alternate>
          <elementRef key="placeName" minOccurs="0" maxOccurs="5"/>
        </sequence>
      </content>
    </egXML>
    <p>This example content model matches a sequence consisting of either
a <gi>name</gi> or a <gi>persName</gi> followed by nothing, or by a
sequence of up to five <gi>placeName</gi> elements. </p>
  </exemplum>
</elementSpec>
