<alternate>
indicates that the constructs referenced by its children form an alternation.
Module tagdocsDEFCON
Attributes
Global and inherited attributes:
Classes and content
- Member of
- May contain
- Contained by
tagdocs
Example
<content>
<alternate>
<elementRef key="name"/>
<elementRef key="persName"/>
</alternate>
</content>
This example content model permits either a name or a persName.
Schematron
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="alternatechilden" scheme="schematron" xml:lang="en">
<constraint>
<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>
</constraint>
</constraintSpec>Content model
<content>
<alternate>
<sequence>
<elementRef key="valList" minOccurs="1" maxOccurs="1"/>
<classRef key="model.contentPart" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<sequence>
<classRef key="model.contentPart" minOccurs="1" maxOccurs="unbounded"/>
<elementRef key="valList" minOccurs="0" maxOccurs="1"/>
</sequence>
</alternate>
</content>