<alt>

<alt> (替換) 標明一個替換,或是元素或段落之間的一組不同選擇。 [16.8 Alternation]
組件 linking — Linking, Segmentation, and Alignment
屬性
target⚓︎ 用一個或多個統一資源識別符參照 (URI References) 來說明參照所指位置。
Derived from att.pointing
狀態 非必備的
資料類型 2–∞ 次可出現: teidata.pointer 以空白鍵隔開
mode⚓︎ 說明在此集合中的替換物件是唯一的或通用的。
狀態 推薦的
資料類型 teidata.enumerated
合法的值是:
excl
(exclusive) 替換物件是唯一的,例如最多只出現一個替換。
incl
(inclusive) 替換物件不是唯一的,例如出現一個或多個替換。
weights⚓︎ 若屬性mode的屬性值是excl,則每個weight皆表明相對應替換的可能性。若屬性mode的屬性值是incl,則每個weight皆表明,在至少一個其他替換存在的前提下,相對應替換的可能性
狀態 非必備的
資料類型 2–∞ 次可出現: teidata.probability 以空白鍵隔開
俱乐部会员
可包含在於
analysis: cl m phr s span w
figures: cell figure table
nets: graph
spoken: u writing
tagdocs: eg valDesc
textcrit: lem rdg wit witDetail
verse: metSym rhyme
可包含 空白元素
例子
<alt mode="excltarget="#we.fun #we.sun"
 weights="0.5 0.5"/>
Content model
<content>
 <empty/>
</content>
宣告
<rng:element name="alt">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.typed.attributes"/>
 <rng:ref name="att.pointing.attribute.targetLang"/>
 <rng:ref name="att.pointing.attribute.evaluate"/>
 <rng:optional>
  <rng:attribute name="target">
   <rng:list>
    <rng:ref name="teidata.pointer"/>
    <rng:ref name="teidata.pointer"/>
    <rng:zeroOrMore>
     <rng:ref name="teidata.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="teidata.probability"/>
    <rng:ref name="teidata.probability"/>
    <rng:zeroOrMore>
     <rng:ref name="teidata.probability"/>
    </rng:zeroOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
 <rng:empty/>
</rng:element>
element alt
{
   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.typed.attributes,
   att.pointing.attribute.targetLang,
   att.pointing.attribute.evaluate,
   attribute target
   {
      list { teidata.pointer, teidata.pointer, teidata.pointer* }
   }?,
   attribute mode { "excl" | "incl" }?,
   attribute weights
   {
      list { teidata.probability, teidata.probability, teidata.probability* }
   }?,
   empty
}