<sequence>
<sequence> indicates that the constructs referenced by its children form a sequence [23.5.1 Defining Content Models] | |||||||
Módulo | tagdocs — Documentation Elements | ||||||
Atributos |
|
||||||
Miembro de | |||||||
Contenido en | |||||||
Puede contener | |||||||
Ejemplo |
<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 |
<sch:rule context="tei:sequence"> <sch:assert test="count(*) gt 1">The sequence element must have at least two child elements</sch:assert> </sch:rule> |
||||||
Content model |
<content> |
||||||
Declaración |
<rng:element name="sequence"> element sequence { 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, attribute preserveOrder { teidata.truthValue }?, model.contentPart+ } |