label tag is used to override the default label for CNXML elements that use
labels, such as figure and example. This can be particularly helpful
when translating content to other languages. The label tag does not affect
numbering; numbering is controlled by the parent tag's "type" attribute.
This CNXML:
<figure id="fig1">
<label>Figura</label>
<media id="dogpic" alt="Perro sentado en la cama">
<image mime-type="image/jpeg" src="image1.jpg" />
</media>
<caption>Este es mi perro Benny
haciendo lo que hace mejor.</caption>
</figure>
Results in this display:
![]() |
This CNXML:
<exercise id="science-exercise">
<label>Short Answer</label>
<problem id="se-problem">
<para id="se-question">
In your opinion, what is the single
greatest scientific accomplishment
of the 20th century? Why?
</para>
</problem>
</exercise>
Results in this display:
In your opinion, what is the single greatest scientific accomplishment of the 20th century? Why?