<altGrp>

<altGrp> (替換群組) 匯集一群替換元素和可能指標。 [17.8 Alternation]
組件 linking — Linking, Segmentation, and Alignment
屬性
mode⚓︎ 說明在此集合中的替換物件是專有的或通用的。
狀態 非必備的
資料類型 teidata.enumerated
合法的值是:
excl
(exclusive) 替換物件是專有的,例如最多只出現一個替換。 [預設值] <a href="https://translate.tei-c.org/translate.html?edit=altGrp.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>
incl
(inclusive) 替換物件不是專有的,例如出現一個或多個替換。
俱乐部会员
可包含在於
analysis: cl m phr s span w
cmc: post
figures: cell figure table
linking: ab seg standOff
nets: graph
spoken: u writing
tagdocs: eg valDesc
textcrit: lem rdg wit witDetail
verse: metSym rhyme
可包含
core: desc ptr
linking: alt

Any number of alternations, pointers or extended pointers.

例子
<altGrp mode="excl">
 <alt target="#dm #lt #bb"
  weights="0.5 0.25 0.25"/>

 <alt target="#rl #dbweights="0.5 0.5"/>
</altGrp>
例子
<altGrp mode="incl">
 <alt target="#dm #rlweights="0.90 0.90"/>
 <alt target="#lt #rlweights="0.5 0.5"/>
 <alt target="#bb #rlweights="0.5 0.5"/>
 <alt target="#dm #dbweights="0.10 0.10"/>
 <alt target="#lt #dbweights="0.45 0.90"/>
 <alt target="#bb #dbweights="0.45 0.90"/>
</altGrp>
Content model
<content>
 <sequence>
  <classRef key="model.descLike"
   minOccurs="0maxOccurs="unbounded"/>

  <alternate minOccurs="0"
   maxOccurs="unbounded">

   <elementRef key="alt"/>
   <elementRef key="ptr"/>
  </alternate>
 </sequence>
</content>
宣告
<rng:element name="altGrp">
 <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.pointing.group.attributes"/>
 <rng:ref name="att.pointing.attributes"/>
 <rng:ref name="att.typed.attributes"/>
 <rng:optional>
  <rng:attribute name="mode"
   a:defaultValue="excl">

   <rng:choice>
    <rng:value>excl</rng:value>
    <rng:value>incl</rng:value>
   </rng:choice>
  </rng:attribute>
 </rng:optional>
 <rng:group>
  <rng:zeroOrMore>
   <rng:ref name="model.descLike"/>
  </rng:zeroOrMore>
  <rng:zeroOrMore>
   <rng:choice>
    <rng:ref name="alt"/>
    <rng:ref name="ptr"/>
   </rng:choice>
  </rng:zeroOrMore>
 </rng:group>
</rng:element>
element altGrp
{
   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.pointing.group.attributes,
   att.pointing.attributes,
   att.typed.attributes,
   attribute mode { "excl" | "incl" }?,
   ( model.descLike*, ( alt | ptr )* )
}