<alt>

<alt> (alternanza) identifica un'alternanza o una serie di scelte tra gli elementi o le porzioni di testo [16.8 Alternation]
Modulolinking — 16 Linking, Segmentation, and Alignment
Attributiatt.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.pointing (@targetLang, @target, @evaluate) att.typed (@type, @subtype)
targetsindica gli identificatori di elementi e porzioni testuali alternativi
Stato Opzionale
Tipo di dati 2–∞ occorrenze di 

<rng:ref name="data.pointer"/>
data.pointer
separato da spazio bianco
Valori 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.
modedichiara se le alternative contenute nell'insieme sono esclusive o inclusive
Stato Consigliato
Tipo di dati

<rng:ref name="data.enumerated"/>
data.enumerated
I valori legali sono:
excl
(esclusivo) indica che l'alternanza è esclusiva, cioè che compare solo una delle possibili alternative
incl
(inclusivo) indica che l'alternanza non è esclusiva, cioè che possono comparire più alternative
weightsse l'attributo mode è excl, ogni peso rappresenta la probabilità che compaia l'alternativa corrispondente; se l'attributo mode è incl ogni peso rappresenta la probabilità che compaia l'alternativa corrispondente a patto che compaia almeno un'altra delle possibili alternative
Stato Opzionale
Tipo di dati 2–∞ occorrenze di 

<rng:ref name="data.probability"/>
data.probability
separato da spazio bianco
Valori a whitespace-separated list of probability values in the range from 0 to 1.
Usato da
Contenuto in
analysis: cl m phr s span w
figures: cell figure table
linking: ab altGrp seg
nets: graph
spoken: u writing
tagdocs: valDesc
textcrit: app lem rdg wit witDetail
verse: metSym rhyme
Può contenereElemento vuoto
Dichiarazione

<rng:element name="alt">
 <rng:ref name="att.global.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.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.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.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>
Esempio
<alt mode="excl" target="#we.fun #we.sun" weights="0.5 0.5"/>