<alt>

<alt> (alternation) identifies an alternation or a set of choices among elements or passages. 16.8 Alternation
組件linking — 16 Linking, Segmentation, and Alignment
屬性 att.pointing (@type, @evaluate)
targetsspecifies the identifiers of the alternative elements or passages.
狀態 必備的
資料類型 2–∞ occurrences of
data.pointer
以空白鍵隔開
Each value specified must be the same as that specified as value for an xml:id attribute for some other element in the current document.
modestates whether the alternations gathered in this collection are exclusive or inclusive.
狀態 推薦的
合法的值是:
excl
(exclusive) indicates that the alternation is exclusive, i.e. that at most one of the alternatives occurs.
incl
(inclusive) indicates that the alternation is not exclusive, i.e. that one or more of the alternatives occur.
weightsIf mode is excl, each weight states the probability that the corresponding alternative occurs. If mode is incl each weight states the probability that the corresponding alternative occurs given that at least one of the other alternatives occurs.
狀態 非必備的
資料類型 1–∞ occurrences of
data.probability
以空白鍵隔開
a whitespace-separated list of probability values in the range from 0 to 1.
If mode is excl, the sum of weights must be 1. If mode is incl, the sum of weights must be in the range from 0 to the number of alternants.
屬於altGrp model.global.meta
可包含空白元素
宣告
element alt
{
   att.global.attributes,
   att.pointing.attributes,
   attribute targets { list { data.pointer, data.pointer+ } },
   attribute mode { "excl" | "incl" }?,
   attribute weights { list { data.probability+ } }?,
   empty
}
例子
<alt mode="excltargets="#we.fun #we.sunweights="0.5 0.5"/>