fileref (
File Reference)
Attribute Description
Description
This attribute holds a file path and filename that locates an image in a data file (a photo, logo, figure or mathematical/chemical structure too complex to mark-up). The path should conform to URL conventions (but do not confuse this attribute with the attribute that uses a URL to locate an interactive product or version of the image), but without the need to include a "file:" prefix. For example, to link to a file in the same directory as the XML article:
fileref="MyBoat.gif"
or to reference the image in a sub-directory:
fileref="images/MyBoat.gif"
or to reference the image in relative directory elsewhere:
fileref="../../images/MyBoat.gif"
or to reference the image in a fixed location on the same drive:
fileref="/images/MyBoat.gif"
or to reference the image on another drive (on a DOS-based computer):
fileref="/D:/images/MyBoat.gif"
This attribute provides an alternative mechanism to the
entityref attribute, so while both attributes are optional, in practice one must be used and the alternative should then not be used.
Note that the name of the file (without its path) should also be stored in the
filename attribute.
In Shared Group
Specification
This attribute is not required. It has text content.
DTD Definition
The DTD contains the following attribute definition
(note that embedded links are to definitions within the DTD page of this guide):
fileref CDATA #IMPLIED
.