Hi David,
I don't think it is possible to scale an image solely with a wrapper around it. I
also don't think a scale-to-fit will work with an fo:inline, only with a fo:block.
You would have to customize the template named 'process.image' in fo/graphics.xsl, and
that is a big and complicated template.
I found that putting a contentdepth="1.1em" on the imagedata element worked to scale
the height down to the approximate line height, but that requires putting an attribute
on each instance.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "David Goss" <[email protected]>
To: <[email protected]>
Sent: Friday, April 06, 2012 10:33 AM
Subject: [docbook-apps] Setting a fixed height for <inlinemediaobject> within
<guiicon>
I'm having difficulty setting the default height for images that appear
in <guiicon>. The source for these images is not always the same size,
so I just want to scale them to the line height in my customization
layer (instead of doing this in every image in the XML source). I've
tried something like this (and probably a hundred variables):
<xsl:template match="d:para">
<fo:block line-stacking-strategy="font-height">
<xsl:apply-imports />
</fo:block>
</xsl:template>
<xsl:template match="d:inlinemediaobject">
<fo:inline content-height="scale-to-fit">
<xsl:apply-imports />
</fo:inline>
</xsl:template>
Which is at least preventing the image from pushing the text up, but the
image itself is not scaling.
DAVID GOSS | Technical Writer
P 1.800.876.9218 x 345 | F 1.800.588.9866
[email protected]
http://www.MuellerReports.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]