Skip to content

<sequence>

indicates that the constructs referenced by its children form a sequence.

Module tagdocsDEFCON

Attributes

@preserveOrderif false, indicates that component elements of a sequence may occur in any order.
Status
Datatype
teidata.truthValue

Classes and content

Member of
May contain
Contained by

Example

<content>
  <sequence>
    <alternate>
      <elementRef key="name"/>
      <elementRef key="persName"/>
    </alternate>
    <elementRef key="placeName" minOccurs="0" maxOccurs="5"/>
  </sequence>
</content>

This example content model matches a sequence consisting of either a name or a persName followed by nothing, or by a sequence of up to five placeName elements.

Schematron

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="sequencechilden" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:sequence">
        <sch:assert test="count(*) gt 1">The &lt;sequence&gt; element must have at least two child elements.</sch:assert>
      </sch:rule>
    </constraint>
  </constraintSpec>

Content model

<content>
    <classRef key="model.contentPart" minOccurs="1" maxOccurs="unbounded"/>
  </content>