att.repeatable

att.repeatable supplies attributes for the elements which define component parts of a content model.
モジュールtagdocs — Documentation Elements
構成alternate anyElement classRef elementRef sequence
属性属性
contextsupplies an XPath identifying a context within which this component of a content model must be found
状態 任意
データ型
minOccurs(minimum number of occurences) indicates the smallest number of times this component may occur.
状態 任意
データ型 teidata.count
初期値 1
maxOccurs(maximum number of occurences) indicates the largest number of times this component may occur.
状態 任意
データ型 teidata.unboundedInt
初期値 1
Schematron

<sch:rule context="*[@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="*[@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>