<interleave>

<interleave> indicates that the constructs referenced by its children occur in any order (i.e. are interleaved) [23.5.1 Defining Content Models]
組件 tagdocs — Documentation Elements
屬性
俱乐部会员
可包含在於
可包含

If an ODD file makes use of this element, current processing software will not be able to generate a DTD from it. For this reason TEI P5 itself does not currently make use of interleave internally.

例子
<content>
 <interleave>
  <elementRef key="persName"/>
  <alternate minOccurs="0">
   <elementRef key="placeName"/>
   <elementRef key="location"/>
  </alternate>
  <elementRef key="noteminOccurs="0"/>
 </interleave>
</content>

This example describes a content model that consists of a mandatory persName element, zero or one of either placeName or location, and an optional note element, in any order.

To express this content model in a DTD, the original schema language for XML, one might use

(   persName
      | ( persName, note )
      | ( persName, ( placeName | location ) ) 
      | ( note, persName )
      | ( ( placeName | location ), persName )
      | ( persName, note, ( placeName | location ) )
      | ( persName, ( placeName | location ), note )
      | ( note, persName, ( placeName | location ) )
      | ( note, ( placeName | location ), persName )
      | ( ( placeName | location ), note, persName )
      | ( ( placeName | location ), persName, note )
    )
Schematron

<sch:rule context="tei:interleave">
<sch:assert test="count(*) gt 1">The <interleave> element must have at least two child elements.</sch:assert>
</sch:rule>
Content model
<content>
 <classRef key="model.contentPart"
  minOccurs="1maxOccurs="unbounded"/>

</content>
宣告
<rng:element name="interleave">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.repeatable.attributes"/>
 <rng:oneOrMore>
  <rng:ref name="model.contentPart"/>
 </rng:oneOrMore>
</rng:element>
element interleave
{
   att.global.attributes,
   att.global.analytic.attributes,
   att.global.change.attributes,
   att.global.facs.attributes,
   att.global.linking.attributes,
   att.global.rendition.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.repeatable.attributes,
   model.contentPart+
}