<alternatives> Alternatives For Processing

Container element used to hold a group of processing alternatives, for example, a single <graphic> that ships in several formats (tif, gif, and jpeg) or in different resolutions. This element is a physical grouping to contain multiple logically equivalent (substitutable) versions of the same information object. Typically these are processing alternatives and the reader is expected to see only one version of the object.

Usage/Remarks

<alternatives> is neither inherently block nor inline in nature, because the block or inline quality is determined by context and usage. Typical examples for this element are a <graphic> that ships with a document in multiple versions (for example, as a .tif, a .jpg, and an SVG file); or an <inline-formula> that is available as a .tif (<inline-graphic>), encoded in MathML, as well as encoded in TeX, and as a plain ASCII.
Accessibility
This element, by providing a container for alternative versions of a graphic or media object, enables providing a textual alternative to any graphic or media object as well as providing an enlarged graphic version for accessibility.
Attributes

Base Attributes

Models and Context
May be contained in
<abbrev>, <abstract>, <ack>, <addr-line>, <aff>, <alt-title>, <anonymous>, <answer>, <app>, <app-group>, <array>, <article-title>, <attrib>, <award-id>, <bio>, <body>, <bold>, <book-app-group>, <book-title>, <book-volume-id>, <book-volume-number>, <boxed-text>, <chapter-title>, <chem-struct>, <chem-struct-wrap>, <collab>, <comment>, <compound-kwd-part>, <compound-subject-part>, <conf-acronym>, <conf-loc>, <conf-name>, <conf-num>, <conf-sponsor>, <conf-theme>, <copyright-statement>, <corresp>, <def-head>, <degrees>, <disp-formula>, <disp-quote>, <edition>, <element-citation>, <email>, <etal>, <explanation>, <ext-link>, <fax>, <fig>, <fig-group>, <fixed-case>, <floats-group>, <funding-source>, <funding-statement>, <given-names>, <glossary>, <gov>, <index>, <index-div>, <index-group>, <inline-formula>, <inline-supplementary-material>, <institution>, <issue>, <issue-part>, <issue-title>, <italic>, <kwd>, <label>, <license-p>, <meta-name>, <meta-value>, <mixed-citation>, <monospace>, <named-book-part-body>, <named-content>, <nav-pointer>, <notes>, <on-behalf-of>, <option>, <overline>, <p>, <part-title>, <patent>, <phone>, <prefix>, <preformat>, <product>, <publisher-loc>, <publisher-name>, <question>, <question-preamble>, <rb>, <ref-list>, <related-article>, <related-object>, <role>, <roman>, <sans-serif>, <sc>, <sec>, <see>, <see-also>, <see-also-entry>, <see-entry>, <self-uri>, <series>, <serif>, <sig>, <sig-block>, <source>, <speaker>, <std-organization>, <strike>, <string-conf>, <string-date>, <string-name>, <styled-content>, <sub>, <subject>, <subtitle>, <suffix>, <sup>, <supplement>, <supplementary-material>, <support-source>, <surname>, <table-wrap>, <target>, <td>, <term>, <term-head>, <th>, <title>, <toc>, <toc-div>, <toc-entry>, <toc-group>, <trans-abstract>, <trans-source>, <trans-subtitle>, <trans-title>, <underline>, <unstructured-kwd-group>, <uri>, <verse-line>, <version>, <volume>, <volume-id>, <volume-series>, <volume-title>, <xref>
Description
Content Model
<!ELEMENT  alternatives %alternatives-model;                         >
Expanded Content Model

((object-id)*, (array | chem-struct | code | graphic | inline-graphic | inline-media | inline-supplementary-material | media | preformat | private-char | supplementary-material | table | textual-form | tex-math | mml:math)+)

Tagged Samples
Alternative figure graphics, differentiated by usage
... 
<fig id="f3" position="float">
 <label>FIG. 3.</label>
 <caption>...</caption>
 <alternatives>
  <graphic specific-use="print" xlink:href="1.4821168.figures.highres.f3.zip"/>
  <graphic specific-use="online" xlink:href="1.4821168.figures.online.f3.jpg"/>
 </alternatives>
</fig>
...
Alternatives to a table inside <table-wrap>
...
<sec id="bid.268">
 <title>Taxids</title>
 <table-wrap id="bid.269">
  <label>1</label>
  <caption>
   <title>Files on the taxonomy FTP site.</title>
  </caption>
  <alternatives>
   <table frame="box" rules="all" cellpadding="5">
    <thead>
     <tr>
      <th align="left" valign="top">File</th>
      <th align="left" valign="top">Uncompresses to</th>
      <th align="left" valign="top">Description</th>
     </tr>
    </thead>
    <tbody>...</tbody>
   </table>
   <graphic xlink:href="T-tax-id-pairs12.gif"/>
   <graphic xlink:href="T-tax-id-pairs12.jpg"/>
  </alternatives>
  <table-wrap-foot>
   <fn symbol="a" id="mul2">
    <p>For non-UNIX users, the file taxdmp.zip includes the
     same (zip compressed) data.</p>
   </fn>
  </table-wrap-foot>
 </table-wrap>
 <p>Each taxon in the database has a unique identifier,
  its taxid. ...</p>
</sec>
...
Equation alternatives (textual form, graphical, MathML)
One textual form, one graphical, and the third tagged MathML
...
<p>... This can be seen in the following:
 <disp-formula>
  <alternatives>

   <textual-form>(a + 3)<sup>2</sup> - (10 - b) = 24</textual-form>

   <graphic xmlns:xlink="http://www.w3.org/1999/xlink"
     xlink:href="fors2682.f3">
    <object-id>463492</object-id>
   </graphic>

   <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML">
    <mml:mrow>
     <mml:msup>
      <mml:mfenced>
       <mml:mrow>
        <mml:mi>a</mml:mi>
        <mml:mo>&plus;</mml:mo>
        <mml:mn>3</mml:mn>
       </mml:mrow>
      </mml:mfenced>
      <mml:mn>2</mml:mn>
     </mml:msup>
     <mml:mo>&minus;</mml:mo>
     <mml:mfenced>
      <mml:mrow>
       <mml:mi>10</mml:mi>
       <mml:mo>&minus;</mml:mo>
       <mml:mn>b</mml:mn>
      </mml:mrow>
     </mml:mfenced>
     <mml:mo>&equals;</mml:mo>
     <mml:mn>24</mml:mn>
    </mml:mrow>
   </mml:math>

  </alternatives>
 </disp-formula>
</p>
...
Equation alternatives (TeX)
One tagged MathML, one in TeX, and one graphical
...
<disp-formula id="eq_002">
 <label>(2)</label>
 <alternatives>
  <graphic xlink:href="graphic/eq_002.png"/>
  <mml:math>
   <mml:mstyle displaystyle="true" scriptlevel="0">
    <mml:mi mathvariant="normal">&Delta;</mml:mi>
    <mml:mi>x</mml:mi>
    <mml:mi mathvariant="normal">&Delta;</mml:mi>
    <mml:mi>p</mml:mi>
    <mml:mo>&ge;</mml:mo>
    <mml:mfrac>
     <mml:mn>1</mml:mn>
     <mml:mn>2</mml:mn>
    </mml:mfrac>
    <mml:mi class="MJX-variant">&hbar;</mml:mi>
   </mml:mstyle>
  </mml:math>
  <tex-math><![CDATA[\displaystyle \Delta x \Delta p \geq \frac{1}{2} \hbar]]></tex-math>
 </alternatives>
</disp-formula>
...
Media alternatives, differentiated by mime subtypes
...
<fig id="f1" orientation="portrait" position="float">
 <label>FIG. 1.</label>
 <caption>
  <p>(a) Schematic of the working principles of HFM, (b) a typical application
   scheme for an electric bias in HFM, (c) regulation the conformations and
   dynamics (trapping, concentration, and sudden stretching) of λ-DNA molecules
   in HFM, and (d) schematic of the trapping location regulation (enhanced online).
   [URL: <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.1063/1.4762852.1">
   http://dx.doi.org/10.1063/1.4762852.1</ext-link>]
   <alternatives>
    <media id="v1" mime-subtype="avi" mimetype="video" orientation="portrait"
      position="anchor" specific-use="original-format" xlink:href="v1"/>
    <media mime-subtype="mpeg" mimetype="video" orientation="portrait"
      position="anchor" specific-use="archival-format" xlink:href="v1"/>
    <media mime-subtype="x-flv" mimetype="video" orientation="portrait"
      position="anchor" specific-use="online-format" xlink:href="v1"/>
   </alternatives>
  </p>
 </caption>
 <graphic xlink:href="f1"/>
 <graphic id="f1a"  xlink:href="dummy1.png"/>
 <graphic id="f1b"  xlink:href="dummy2.png"/>
 <graphic id="f1c"  xlink:href="dummy3.png"/>
 <graphic id="f1d"  xlink:href="dummy4.png"/>
</fig>
...
Table alternatives including supplementary material
...
<table-wrap id="pbio-0020328-t002" position="float">
 <label>Table 2</label>
 <caption>
  <title>Genes Activated in the Mother-Cell Line of Gene Expression</title>
 </caption>
 <alternatives>
  <graphic xlink:href="pbio.0020328.t002.tif"/>
  <table frame="box" rules="all" cellpadding="5">...</table>
  <supplementary-material id="S1" xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:title="local_file" xlink:href="pbio-0020328-t002.xls"
    mimetype="application/vnd.ms-excel">
   <label>Supporting Material</label>
   <caption>
    <p>Supplementary Microsoft Excel file (raw study data) supplied by authors.</p>
   </caption>
  </supplementary-material>
 </alternatives>
 <table-wrap-foot>...</table-wrap-foot>
</table-wrap>
...
Triple bond glyph
To a chemist, a triple bond is not the same character as Unicode x2261, but <alternatives> may be used to display the triple bond visually and still stay within Unicode.
...
<alternatives>
 <textual-form specific-use="unicode-look-alike">&#x2261;</textual-form>
 <private-char name="Triple Bond" description="Chemistry Triple Bond">
  <glyph-data id="tbond" format="PBM" resolution="300"
    x-size="16" y-size="32">
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0001111111111111111111111100000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0001111111111111111111111100000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0001111111111111111111111100000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
   0000000000000000000000000000000
  </glyph-data>
 </private-char>
</alternatives>
...
Related Resources