docbook:mediaobject

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
annotations optional
arch optional
audience optional
condition optional
conformance optional
dir restriction of xs:token optional
linkend xs:IDREF optional
os optional
remap optional
revision optional
revisionflag restriction of xs:token optional
role optional
security optional
userlevel optional
vendor optional
version optional
wordsize optional
xlink:actuate xlink:actuateType optional
xlink:arcrole xlink:arcroleType optional
xlink:href xlink:hrefType optional
xlink:role xlink:roleType optional
xlink:show xlink:showType optional
xlink:title xlink:titleAttrType optional
xlink:type xlink:typeType optional
xml:base xs:anyURI optional
See http://www.w3.org/TR/xmlbase/ for
information about this attribute.
xml:id xs:ID optional
See http://www.w3.org/TR/xml-id/ for
information about this attribute.
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.
xreflabel optional

Used By

Elements docbook:acknowledgements, docbook:annotation, docbook:answer, docbook:appendix, docbook:article, docbook:bibliodiv, docbook:biblioentry, docbook:bibliography, docbook:bibliolist, docbook:bibliomixed, docbook:bibliomset, docbook:biblioset, docbook:blockquote, docbook:callout, docbook:calloutlist, docbook:caption, docbook:caution, docbook:chapter, docbook:colophon, docbook:constraintdef, docbook:cover, docbook:dedication, docbook:entry, docbook:equation, docbook:example, docbook:figure, docbook:footnote, docbook:glossary, docbook:glossdef, docbook:glossdiv, docbook:glosslist, docbook:important, docbook:index, docbook:indexdiv, docbook:info, docbook:informalequation, docbook:informalexample, docbook:informalfigure, docbook:informaltable, docbook:itemizedlist, docbook:legalnotice, docbook:listitem, docbook:msgexplan, docbook:msgtext, docbook:note, docbook:orderedlist, docbook:para, docbook:partintro, docbook:preface, docbook:procedure, docbook:qandadiv, docbook:qandaset, docbook:question, docbook:refsect1, docbook:refsect2, docbook:refsect3, docbook:refsection, docbook:refsynopsisdiv, docbook:revdescription, docbook:screenshot, docbook:sect1, docbook:sect2, docbook:sect3, docbook:sect4, docbook:sect5, docbook:section, docbook:setindex, docbook:sidebar, docbook:simplesect, docbook:step, docbook:table, docbook:taskprerequisites, docbook:taskrelated, docbook:tasksummary, docbook:td, docbook:textobject, docbook:th, docbook:tip, docbook:toc, docbook:tocdiv, docbook:variablelist, docbook:warning

Source

<xs:element name="mediaobject">
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" ref="docbook:info"/>
      <xs:element minOccurs="0" ref="docbook:alt"/>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="docbook:videoobject"/>
        <xs:element ref="docbook:audioobject"/>
        <xs:element ref="docbook:imageobject"/>
        <xs:element ref="docbook:textobject"/>
        <xs:element ref="docbook:imageobjectco"/>
      </xs:choice>
      <xs:element minOccurs="0" ref="docbook:caption"/>
    </xs:sequence>
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="docbook:db.common.attributes"/>
    <xs:attributeGroup ref="docbook:db.common.linking.attributes"/>
  </xs:complexType>
</xs:element>

Sample

< figure xmlns = "http://docbook.org/ns/docbook" xml:id = "f.emacs" >

< title>

Emacs with nXML mode provides guided editing and validation

</ title>

< mediaobject>

< imageobject role = "html" >

< imagedata fileref = "images/emacs.png" />

</ imageobject>

< imageobject role = "fo" >

< imagedata fileref = "images/emacs.png" width = "100%" />

</ imageobject>

</ mediaobject>

</ figure>