<cover>

Description

The cover of a document.

This element is used in the metadata section of a document, in order to specify the cover image.

Attributes

Attribute name Description
url The path to the image.
target Apply this metadata element only to the specified targets. See BDML schema for more information on metadata elements.
variant Apply this metadata element only when the variant is specified during translation. See BDML schema for more information on metadata elements.
width The width of the image. See the <graphic> element for more details.
height The height of the image. See the <graphic> element for more details.

Immediate descendants

No element descendants are defined for the <cover> element.

Immediate ancestors

Element name Relation
<metadata> The enclosing metadata element of the root bdml file.

Example

<document xmlns="http://boradoc.org/1.0">
  <metadata>
    <cover url="images/open-book.jpg" />
  </metadata>
</document>

The above BDML renders to the following: