<interleave>
| <interleave> indicates that the constructs referenced by its children occur in any order (i.e. are interleaved) [23.5.1 Defining Content Models] | |
| Modulo | tagdocs — Documentation Elements |
| Attributi |
|
| Membro del | |
| Contenuto in |
tagdocs: alternate content interleave sequence
|
| Può contenere | |
| Nota |
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. |
| Esempio |
<content>
<interleave> <elementRef key="persName"/> <alternate minOccurs="0"> <elementRef key="placeName"/> <elementRef key="location"/> </alternate> <elementRef key="note" minOccurs="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> |
| Dichiarazione |
<rng:element name="interleave"> 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+ } |