<alternate>
<alternate> indicates that the constructs referenced by its children form an alternation [22.5.1 Defining Content Models] | |
組件 | tagdocs — Documentation Elements |
屬性 | att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source)) att.repeatable (@minOccurs, @maxOccurs) |
俱乐部会员 | |
可包含在於 | |
可包含 | |
例子 | <content> <alternate> <elementRef key="name"/> <elementRef key="persName"/> </alternate> </content> This example content model permits either a name or a persName. |
Schematron | <sch:assert test="count(*)>1">The alternate element must have at least two child elements</sch:assert> |
Content model | <content> |
宣告 | <rng:element name="alternate"> element alternate { 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, ( valList | model.contentPart )+ } |