<alt> (교체) 요소나 단락 사이의 교체 또는 선택 집합을 식별한다. 16.8 Alternation |
모듈 |
linking — 16 Linking, Segmentation, and Alignment
|
전체 속성에 부가 |
att.pointing (@target, @evaluate) att.typed (@type, @subtype)
targets |
교체 요소 또는 단락의 확인소를 명시한다.
상태
|
수의적 |
자료 유형
|
2–∞ 출현
공백문자로 분리됨 |
값
|
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.
|
|
mode |
이 집합에 모아진 교체가 배타적인지 또는 총괄적인지를 진술한다.
상태
|
권고적 |
적법한 값은: |
- excl
- (배타적) 교체가 배타적임을 나타낸다. 즉, 기껏해야 교체 집합 중 하나가
나타난다.
- incl
- (총괄적) 교체가 배타적이 아님을 나타낸다. 즉, 교체집합 중 하나 이상이
나타난다.
|
|
weights |
mode가 excl 이라면, 각 가중치는
대응하는 교체가능성이 발생할 확률을 말한다. mode가 incl이라면, 각 가중치는 적어도 다른 교체가능집합 중
하나가 발생한 상태에서 대응하는 교체가능성이 발생할 확률이다.
상태
|
수의적 |
자료 유형
|
2–∞ 출현
공백문자로 분리됨 |
값
|
a whitespace-separated list of probability values in the range from 0 to 1. |
|
|
에 의해 사용된 |
|
포함할 수 있다 |
공백 요소 |
선언 |
<rng:element name="alt"> <rng:ref name="att.global.attributes"/> <rng:ref name="att.pointing.attributes"/> <rng:ref name="att.typed.attributes"/> <rng:optional> <rng:attribute name="targets"> <rng:list> <rng:ref name="data.pointer"/> <rng:ref name="data.pointer"/> <rng:zeroOrMore> <rng:ref name="data.pointer"/> </rng:zeroOrMore> </rng:list> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="mode"> <rng:choice> <rng:value>excl</rng:value> <rng:value>incl</rng:value> </rng:choice> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="weights"> <rng:list> <rng:ref name="data.probability"/> <rng:ref name="data.probability"/> <rng:zeroOrMore> <rng:ref name="data.probability"/> </rng:zeroOrMore> </rng:list> </rng:attribute> </rng:optional> <rng:empty/> </rng:element>
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 |
<s:report test="@target and @targets">You may not supply both @target and @targets</s:report>
|
Schematron |
<s:report test="not(@target) and not(@targets)">You must supply either @target or @targets</s:report>
|
Schematron |
<s:assert test="contains(@target,' ')">You must supply at least two values for @target</s:assert>
|
예 |
<alt mode="excl" targets="#we.fun #we.sun" weights="0.5 0.5"/>
|