<alt>

<alt> (替換) 標明一個替換,或是元素或段落之間的一組不同選擇。 [17.8 Alternation]
組件 linking — Linking, Segmentation, and Alignment
屬性
target⚓︎ 用一個或多個統一資源識別符參照 (URI References) 來說明參照所指位置。
Derived from att.pointing
狀態 非必備的
資料類型 2–∞ 次可出現: teidata.pointer 以空白鍵隔開
<a href="https://translate.tei-c.org/translate.html?edit=alt.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a>
mode⚓︎ 說明在此集合中的替換物件是唯一的或通用的。
狀態 推薦的
資料類型 teidata.enumerated
合法的值是:
excl
(exclusive) 替換物件是唯一的,例如最多只出現一個替換。
incl
(inclusive) 替換物件不是唯一的,例如出現一個或多個替換。
weights⚓︎ 若屬性mode的屬性值是excl,則每個weight皆表明相對應替換的可能性。若屬性mode的屬性值是incl,則每個weight皆表明,在至少一個其他替換存在的前提下,相對應替換的可能性
狀態 非必備的
資料類型 2–∞ 次可出現: teidata.probability 以空白鍵隔開
俱乐部会员
可包含在於
analysis: cl m phr s span w
cmc: post
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.analytic.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.cmc.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.analytic.attributes,
   att.global.change.attributes,
   att.global.facs.attributes,
   att.global.linking.attributes,
   att.global.rendition.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.cmc.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
}