The following is an example of a mediaobject set up for both HTML and FO outputs. The DocBook stylesheets can automatically select the right graphic if the. In DocBook V, three types of external objects are defined: VideoObjects, AudioObjects, and ImageObjects. Additional textual descriptions may be provided. version, [], xsd:anySimpleType, Specifies the DocBook version of the element and its descendants, from group utes ยท xml:lang, [].

Author: Gardarn Brazilkree
Country: Romania
Language: English (Spanish)
Genre: Relationship
Published (Last): 20 October 2018
Pages: 91
PDF File Size: 1.27 Mb
ePub File Size: 19.31 Mb
ISBN: 698-6-21098-385-9
Downloads: 15376
Price: Free* [*Free Regsitration Required]
Uploader: Yozshusida

Graphics are a frequent cause of problems in DocBook documents. Each of these main graphic elements is supplemented with a version to be used inline, named inlinegraphic and inlinemediaobjectrespectively.

mediaobject

That element can be used to track information about the image, such as the software that created it, the current revision, the author, etc. You can also use figure and informalfigure to add space above and below your graphic in print output.

The original graphic element is simple, but not flexible enough to handle multiple output formats.

If you need to use more than one graphics file format, then you must use the mediaobject element instead of the graphic element. If the fileref does not have an extension, it checks the graphic. It looks at the first imageobject inside the mediaobject. If all of these tests fail on the first imageobjectit repeats them on subsequent objects until it finds an acceptable one.

Although informalfigure does not take a title, they both provide additional attributes for handling your graphics:. It can contain several imageobject elements with different specifications.

meriaobject

DocBook mediaobject – Complete documentation and samples

The following attribute sets provide the spacing in the stylesheet, which you can adjust in your customization layer:.

  FUNDAMENTOS DE MATEMATICAS BASICAS GLADYS APONTE PDF

If that value is on the list of extensions for that output, then it accepts that object and does not consider any others. If it does not have a format attribute, it extracts the filename extension from the fileref attribute.

These attributes let you indicate that the figure can float to the top, left, or right. If you use example or informalexamplethen you can use the example. If you are using XEP, then set the parameter preferred. DocBook has two main graphic elements. Remember that the role attribute goes on the imageobject element, not the imagedata.

If so, then it accepts that object and does not consider any others. If it is nonzero, then the role attribute is considered during the selection process. If two objects are acceptable, only the first can ever be selected with this method. The mediaobject element contains two graphical elements.

Simplified DocBook DTD: Element mediaobject

When you process this example with the html stylesheet, you get the PNG graphic, and when you process it with the FO stylesheet, you get dochook PDF graphic. You can turn that behavior off if you set the parameter to zero.

But the first thing you must do is decide which elements will hold your graphics. With figureyou can supply a title, and mwdiaobject figures will be numbered and listed in the optional front-of-the-book List of Figures. Then you pass the selected role value in a command line parameter named preferred.

The stylesheet can then choose the appropriate object for a given output. A mediaobject element is a container for one or more imageobject elements, each of which has an imagedata element. The automatic selection behavior is controlled by the use. If your print content is styled so that headings are at the left margin and body text is indented, then setting this attribute to 1 lets you indicate that the figure is wide and should be positioned starting at the left margin.

  BY THE WATERS OF BABYLON BENET PDF

The preferred element for graphics is mediaobject. If you are processing with the FOP processor, then set the parameter preferred. You could also put sizing attributes there. Usually, the various images in a mediaobject are different formats of the same illustration, with the idea that only one of them at a time will be used by the stylesheet.

The DocBook stylesheets can docobok select the right graphic if the imageobject elements have a role attribute of either html or fo. If its imagedata element does not contain an SVG graphic, but has a format attribute, it checks to see if its value is on the format list for that output.

Element mediaobject

For cross referencing purposes, put the id attribute on the mediaobject container, unless you are putting that inside another container such as figure. You might be wondering why the imagedata element needs an imageobject container?

Other stylesheet customizations such as Website or your own will meediaobject the value for the stock stylesheet it is based upon. For example, if you have a choice of XSL-FO processors, then you could designate a graphic format optimized for each one.

Kediaobject you do not use the role attribute to select from among several imageobject elements, then the stylesheets will try to make a choice based on file format.

If its imagedata element contains a complete SVG graphic and the parameter use.