§
<figure>
<figure> (figure) groups elements representing or containing graphic information such as a graphic illustration, or a block of example code. Figure must contain either graphic, egXML (for example XML code) or eg (for non-XML code), and a mandatory head element containing the caption for the figure. Inline code examples may be provided through egXML and eg without the figure wrapper. [14.4. Specific Elements for Graphic Images] | |||||||||
Module | figures | ||||||||
Attributes | Attributes att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @rendition)) (att.global.responsibility (@cert, @resp)) att.placement (@place) att.typed (@type)
| ||||||||
Member of | |||||||||
Contained by | |||||||||
May contain | |||||||||
Declaration | element figure { attribute place { text }?, attribute type { text }?, ( graphic | egXML | eg ), head+ } | ||||||||
Example | <figure> <graphic url="http://www.example.org/fig1.png" width="100px" height="750px"/> <head type="legend">The View from the Bridge</head> <head type="license">Used with permission</head> </figure> | ||||||||
Example | <figure> <eg>if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0) goto fail; if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0) goto fail; goto fail; if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0) goto fail; </eg> <head type="legend">An embarrassing error for Apple</head> </figure> | ||||||||
Example | <figure> <egXML xmlns="http://www.tei-c.org/ns/Examples"> <list rend="bulleted"> <item>Life</item> <item>The Universe</item> <item>Everything</item> </list> </egXML> <head type="legend">A book title rendered as a list</head> </figure> |