<?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" ident="modelSequence" xml:id="gi-modelSequence" module="tagdocs">
  <desc versionDate="2017-02-07" xml:lang="en">any sequence of model or <gi>modelSequence</gi> elements which is to be processed as a single set of actions.</desc>
  <classes>
    <memberOf key="att.global"/>
    </classes>
  <content>
    <sequence>
      <alternate minOccurs="0" maxOccurs="unbounded">
        <classRef key="model.identEquiv"/>
        <classRef key="model.descLike"/>
      </alternate>
      <elementRef key="model" minOccurs="2" maxOccurs="unbounded"/>
    </sequence>
  </content>
  <constraintSpec scheme="schematron" ident="no_outputs_nor_predicates_4_my_kids" xml:lang="en">
    <constraint>
      <sch:rule context="tei:modelSequence">
        <sch:report test="tei:model[@output]" role="warning">The 'model' children
        of a 'modelSequence' element inherit the @output attribute of the
        parent 'modelSequence', and thus should not have their own</sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>
  <attList>
    <attDef ident="predicate" usage="opt">
      <desc versionDate="2015-05-15" xml:lang="en">the condition under which this model applies given as an XPath Predicate Expression.</desc>
      <datatype>
        <dataRef key="teidata.xpath"/>
      </datatype>
    </attDef>
    <attDef ident="useSourceRendition" usage="opt">
      <desc versionDate="2015-05-15" xml:lang="en">whether to obey any rendition attribute that is present.</desc>
      <datatype>
        <dataRef key="teidata.truthValue"/>
      </datatype>
    </attDef>
    <attDef ident="output" usage="opt">
      <desc versionDate="2015-05-15" xml:lang="en">the intended output method.</desc>
      <datatype>
        <dataRef key="teidata.enumerated"/>
      </datatype>
      <valList type="semi">
        <valItem ident="web">
          <desc versionDate="2015-05-15" xml:lang="en">the output is intended for presentation in a web format</desc>
        </valItem>
        <valItem ident="print">
          <desc versionDate="2015-05-15" xml:lang="en">the output is intended for presentation in a print format</desc>
        </valItem>
        <valItem ident="plaintext">
          <desc versionDate="2015-05-15" xml:lang="en">the output is intended for presentation in a plain text format</desc>
        </valItem>
      </valList>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-modelSequence-egXML-oj" source="#UND">
      <modelGrp output="print">
        <modelSequence>
          <model behaviour="inline">
            <param name="content" value="@n"/>
          </model>
          <model behaviour="footnote">
            <param name="place" value="'foot'"/>
          </model>
        </modelSequence>
      </modelGrp>
    </egXML>
  </exemplum>
  <remarks versionDate="2016-11-21" xml:lang="en">
    <p>All of the <gi>model</gi> elements inside a <gi>modelSequence</gi> 
      element must be processed. The operations indicated by each <gi>model</gi> 
      child cannot be dependent on any other operation in the sequence. The results 
      must be rendered in the order given by the list of <gi>model</gi>s in the 
      <gi>modelSequence</gi>.</p>
  </remarks>
  <listRef>
    <ptr target="#TDPMMS"/>
  </listRef>
</elementSpec>
