§

<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]
Modulefigures
AttributesAttributes 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)
place
Status Optional
type
Status Optional
Member of
Contained by
May contain
tagdocs: eg egXML
Declaration
element figure
{
   attribute place { text }?,
   attribute type { text }?,
   ( graphic | egXML | eg ),
   head+
}
Example
<figure>
 <graphic url="http://www.example.org/fig1.png"
  width="100pxheight="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(&amp;hashCtx, &amp;serverRandom)) != 0)
   goto fail;
   if ((err = SSLHashSHA1.update(&amp;hashCtx, &amp;signedParams)) != 0)
   goto fail;
   goto fail;
   if ((err = SSLHashSHA1.final(&amp;hashCtx, &amp;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>