◇◆
<media> Media Object
Description of and pointer to an external file that holds a media object (for example,
an animation, a movie).
Usage/Remarks
The “content” of the <media> element is not the media object itself, but information concerning the object and
a pointer to the external objects. The external file that contains the object is named
by the @xlink:href attribute.
Media versus Figure
Put Display Components at Highest Level Possible
Display component elements, such as <caption>, should always be used at the highest possible level; in other words, if a <media> element is inside a <fig> element, the <caption>, <long-desc>, etc., should be part of the <fig>, not part of the <media> element. Use a <caption> element on a <media> only when the media object is not enclosed in any other structure or when a figure
contains multiple media objects, each of which must have its own <caption>. For similar reasons, the @position attribute should be set to “anchor” for a <media> element that is inside a larger display container such as a <fig>.
Graphic versus Media
Although this Tag Set cannot enforce it, the element <graphic> should be limited to still images. The element <media> should be reserved for objects that involve video, audio, moving images, time-dependent
graphical types, and other non-XML data types. Such external objects should take a
@mimetype, when possible.
Position
The @position attribute may be used to indicate whether this element must be anchored at its exact
location within the text or whether it may float, but best practice is to anchor graphics
and media objects. The few media objects that float loose in text should be anchored
there, and all the media objects inside figures, tables, etc., should be anchored
as well, although the outer structure (figure, boxed text) may be allowed to float.
Attributes
orientation (default = portrait)
position (default = float)
Multi-lang Attributes
Namespaces
Models and Context
May be contained in
Description
The following, in order:
- <object-id> Object Identifier, zero or one
- Any combination of:
- Accessibility Elements
- <legend> Legend, zero or more
- <xref> X (cross) Reference, zero or more
- <custom-meta-group> Custom Metadata Group, zero or more
- Ownership Elements
- <attrib> Attribution, zero or one
- <permissions> Permissions, zero or more
Content Model
<!ELEMENT media %media-model; >
Expanded Content Model
((object-id)?, (alt-text | long-desc)*, (legend)*, (xref)*, (custom-meta-group)*, attrib?, (permissions)*)
Tagged Sample
Video object, content is DOI
...
<media id="v1" mimetype="video/x-msvideo"
orientation="portrait" position="anchor"
specific-use="original-format"
xlink:href="v1-video1-orig.avi">
<object-id pub-id-type="doi" specific-use="metadata">10.1063/1.4807071.1</object-id>
</media>
...
Related Resources
- See: Accessibility
- See: Figures/Graphics/Media
- See: Hierarchy diagram - Media Object