<alt>

| ## Text Encoding Initiative
### The XML Version of the TEI Guidelines # <alt>

`<alt>` | (alternation) identifies an alternation or a set of choices among elements or passages.
Attributes | (In addition to global attributes and those inherited from complexVal, metadata, pointer)
`targets` | specifies the identifiers of the alternative elements or passages.
| Datatype: IDREFS
| Values: Each value specified must be the same as that specified as value for an `id` attribute for some other element in the current document.
| Default: #REQUIRED
`mode` | states whether the alternations gathered in this collection are exclusive or inclusive.
| Datatype: (excl|incl)
| Legal values are:
excl | indicates that the alternation is exclusive, i.e. that at most one of the alternatives occurs.
incl | indicates that the alternation is not exclusive, i.e. that one or more of the alternatives occur.
| Default: %INHERITED;
`weights` | If `mode` is `excl`, each weight states the probability that the corresponding alternative occurs. If `mode="incl"` each weight states the probability that the corresponding alternative occurs given that at least one of the other alternatives occurs.
| Datatype: CDATA
| Values: a list of numbers, in the range from 0 to 1 if `wScale` is `real`, and in the range from 0 to 100 if `wScale` is `perc`.
| Default: #IMPLIED
Note | If `mode` is `excl`, the sum of weights must be 1 (or 100%;). If `mode` is `excl`, the sum of weights must be in the range from 0 to the number of alternants (or 0 to 100%; times the number of alternants).
`wScale` | indicates the scale used to express the value of the `weights` attribute value.
| Datatype: (perc|real)
| Legal values are:
perc | indicates that the weights are expressed as percentages.
real | indicates that the weights are expressed as values between 0 and 1.
| Default: %INHERITED;

Example

    <alt mode="excl" targType="u u" targets="we.fun we.sun" weights="50 50"/>

Module Declared in file teilink2.dtd; Additional tag set for Linking and Segmentation: enabled by TEI.linking
Class pointer; complexVal; metadata
Data Description empty
May occur within ab abbr activity actor add addName addrLine address admin affiliation altGrp analytic app argument author authority back bibl biblFull biblScope biblStruct birth bloc body byline camera caption case castGroup castItem castList cell channel cit cl classCode closer colloc constitution corr country creation damage date dateRange dateStruct dateline def del derivation descrip dictScrap distance distinct distributor div div0 div1 div2 div3 div4 div5 div6 div7 docAuthor docDate docEdition docImprint docTitle domain edition editor education emph entry entryFree epigraph epilogue etym expan extent f factuality figDesc figure firstLang foreName foreign form front fs funder fw gen genName geogName gloss gram gramGrp graph group head headItem headLabel hi hyph imprimatur imprint interaction item itype l label lang langKnown language lbl lem lg lg1 lg2 lg3 lg4 lg5 list listBibl locale m measure meeting mentioned metDecl monogr mood name nameLink note num number occasion occupation offset ofig opener orgDivn orgName orgTitle orgType orig orth otherForm p per performance persName phr placeName pos preparedness principal prologue pron pubPlace publicationStmt publisher purpose q quote rdg rdgGrp re ref reg region rendition residence resp respStmt restore role roleDesc roleName row rs s salute seg sense series set settlement sic signed soCalled socecStatus sound sp speaker sponsor stage street stress subc supplied surname syll symbol table tagUsage tech term termEntry text tig time timeRange timeStruct title titlePage titlePart tns tr trailer trans u unclear usg view w wit witDetail witList witness writing xr xref
Declaration

    <!ELEMENT alt %om.RO; EMPTY>
    <!ATTLIST alt
          %a.global;
          %a.pointer;
          targets IDREFS #REQUIRED
          mode (excl|incl) %INHERITED;
          weights CDATA #IMPLIED
          wScale (perc|real) %INHERITED;>

See further 14.8 Alternation

Up: 35 Elements