OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Setting a fixed height for <inlinemediaobject> within <guiicon>


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
bobs@sagehill.net


----- Original Message ----- From: "David Goss" <dgoss@mueller-inc.com>
To: <docbook-apps@lists.oasis-open.org>
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
dgoss@mueller-inc.com
http://www.MuellerReports.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]