Description
This empty element contains attributes that identify an external data file that contains an image to be shown at the location of this element. The graphic would break a paragraph into separate text blocks, so if this is not desired for a small graphic within a paragraph, use the
<inlinegraphic> element instead.
Although this element can be used in many locations in the content of the article, it must be used within the
<figure> element when it is going to be referenced from the text.
The reference can be directly to a file (using URL conventions to locate the file), or an indirect reference to an entit declaration for the image. In the first scenario, the
fileref attribute holds a URL that locates the file. In this case, when there is no URL prefix, it is assumed to be a "file:" URL, and when it does not begin with "/" then this file is assumed to be in a location that is relative to the location of the XML file:
<graphic fileref="images/boat.gif" />
In the second scenario, the
entityref attribute is used to reference an entity declarations:
<!ENTITY boat SYSTEM "images/boat.gif" NDATA GIF>
...
<graphic entityref="boat" />
Parent Elements
The elements listed below may directly contain this element.
They are "parent" elements. Elements in referenced groups are included, up to two levels of group nesting.
Model Diagram
The DTD model for this element:
(no content allowed)
DTD Definition
The DTD contains the following element and attribute definitions
(note that embedded links are to definitions within the DTD page of this guide):
<!ELEMENT graphic EMPTY>
<!ATTLIST graphic
%a-group-FileRefAttrs;
%a-group-GraphicAttrs;
%a-group-CommonIDAttrs;
%a-group-InteractiveAttrs;>
.
Defined in DTD section
Block-level Content : Figures
General Attributes (shared with other elements)