<?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-sequence" ident="sequence">
  <desc versionDate="2013-11-21" xml:lang="en">indicates that the constructs referenced by its children form a sequence.</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="att.repeatable"/>
    <memberOf key="model.contentPart"/>
  </classes>
  <content>
    <classRef key="model.contentPart" maxOccurs="unbounded"/>
  </content>
  <constraintSpec ident="sequencechilden" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:sequence">
        <sch:assert test="count(*) gt 1">The sequence element must have at least two child elements</sch:assert>
      </sch:rule>
    </constraint>
  </constraintSpec>
  <attList>
    <attDef ident="preserveOrder">
      <desc versionDate="2023-03-21" xml:lang="en">if false, indicates that
      component elements of a sequence may occur in any order.</desc>
      <datatype><dataRef key="teidata.truthValue"/></datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-sequence-egXML-uc" xml:lang="en" source="#UND">
      <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>
  <listRef>
    <ptr target="#DEFCON" type="div2"/>
  </listRef>
</elementSpec>
