Image size of callouts and admonitions in docbook

Here should go questions about transforming XML with XSLT and FOP.
watho
Posts: 2
Joined: Tue May 22, 2007 8:59 am

Image size of callouts and admonitions in docbook

Post by watho »

I want to use images in my docbook document. The images are shown, but too big and blurred.

I am using the images delivered with oxygen xml 8.2. So the original size of the callout is 12x12 px, but in the document its 24x24.

I like to know, which parameters i have to change to resize the pictures, respectively not to resize them.

Image
Image

MfG ThW
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

You have to create a DocBook customization layer for the template which sets the content width of the image and apply it to your DocBook XML document:

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="file:///C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/xsl/fo/docbook.xsl"/>

<xsl:template match="*" mode="admon.graphic.width">
<xsl:param name="node" select="."/>
<xsl:text>18px</xsl:text>
</xsl:template>
</xsl:stylesheet>
You can change 18px with other number and size unit accepted for graphic sizes in XSL-FO.


Regards,
Sorin
watho
Posts: 2
Joined: Tue May 22, 2007 8:59 am

Post by watho »

thx for your help.
Post Reply