att.repeatable

att.repeatable provides attributes for the elements which define component parts of a content model.
Módulo tagdocs — Documentation Elements
Miembros alternate anyElement classRef datatype elementRef sequence
Atributos
minOccurs⚓︎ (número mínimo de apariciones) indicates the smallest number of times this component may occur.
Estado Opcional
Tipo de datos teidata.count
Por defecto 1
maxOccurs⚓︎ (número máximo de apariciones.) indicates the largest number of times this component may occur.
Estado Opcional
Tipo de datos teidata.unboundedCount
Por defecto 1
Schematron

<sch:rule context="tei:*[ @minOccurs and @maxOccurs ]">
<sch:let name="min"
 value="@minOccurs cast as xs:integer"/>

<sch:let name="max"
 value="if ( normalize-space( @maxOccurs ) eq 'unbounded') then -1 else @maxOccurs cast as xs:integer"/>

<sch:assert test="$max eq -1 or $max ge $min">@maxOccurs should be greater than or equal to @minOccurs</sch:assert>
</sch:rule>
<sch:rule context="tei:*[ @minOccurs and not( @maxOccurs ) ]">
<sch:assert test="@minOccurs cast as xs:integer lt 2">When @maxOccurs is not specified, @minOccurs must be 0 or 1</sch:assert>
</sch:rule>