<alternate>

<alternate> indicates that the constructs referenced by its children form an alternation [23.5.1 Defining Content Models]
모듈 tagdocs — Documentation Elements
속성
클럽 회원
에 의해 포함된
포함할 수 있다
<content>
 <alternate>
  <elementRef key="name"/>
  <elementRef key="persName"/>
 </alternate>
</content>

This example content model permits either a name or a persName.

Schematron

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

  <elementRef key="valList"/>
  <classRef key="model.contentPart"/>
 </alternate>
</content>
선언
<rng:element name="alternate">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.repeatable.attributes"/>
 <rng:oneOrMore>
  <rng:choice>
   <rng:ref name="valList"/>
   <rng:ref name="model.contentPart"/>
  </rng:choice>
 </rng:oneOrMore>
</rng:element>
element alternate
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.repeatable.attributes,
   ( valList | model.contentPart )+
}