<alt>

<alt> (代替選択肢) 要素などが選択的である場合のいち選択肢を示す。 [17.8 Alternation]
モジュール linking — Linking, Segmentation, and Alignment
属性
target⚓︎ 1つまたは複数のURI参照を指名することで、参照先を指定する。
Derived from att.pointing
状態 任意
データ型 2–∞ occurrences of 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
(単一選択) 高々ひとつしか選択できない。
incl
(複数選択) 複数を選択できる。
weights⚓︎ 属性modeの値がexclの場合、各重みは対応する代替が発生する確率を示す。 属性modeの値がinclの場合、他の選択肢の少なくとも1つが発生した場合に対応する代替が発生する確率を示す。
状態 任意
データ型 2–∞ occurrences of teidata.probability 空白文字で区切られる
解説

属性modeの値がexclの場合、重みの合計は1でなければならない。属性mode値が inclの場合、重みの合計は0から代替数の範囲内になければならない。

クラブのメンバー
上位
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
}