<alt>
| <alt> (替換) 標明一個替換,或是元素或段落之間的一組不同選擇。 16.8 Alternation | |||||||||||||||||||||||
| 組件 | linking — 16 Linking, Segmentation, and Alignment | ||||||||||||||||||||||
| 除全域屬性以外 | att.pointing (@target, @evaluate) att.typed (@type, @subtype)
|
||||||||||||||||||||||
| 屬於 | |||||||||||||||||||||||
| 可包含 | 空白元素 | ||||||||||||||||||||||
| 宣告 |
element alt { att.global.attributes, att.pointing.attributes, att.typed.attributes, attribute targets { list { data.pointer, data.pointer, data.pointer* } }?, attribute mode { "excl" | "incl" }?, attribute weights { list { data.probability, data.probability, data.probability* } }?, empty } |
||||||||||||||||||||||
| Schematron |
<sch:report test="@target and @targets">You may not supply both @target and @targets</sch:report> |
||||||||||||||||||||||
| Schematron |
<sch:report test="not(@target) and not(@targets)">You must supply either @target or @targets</sch:report> |
||||||||||||||||||||||
| Schematron |
<sch:assert test="contains(@target,' ')">You must supply at least two values for @target</sch:assert> |
||||||||||||||||||||||
| 例子 |
<alt mode="excl" targets="#we.fun #we.sun" weights="0.5 0.5"/>
|
||||||||||||||||||||||
