The XEP XSL example would not work in
DocBook XSL because it has a match="image" template, and there is no
<image> element in DocBook.
You can set the attributes on individual
imagedata elements in your DocBook document. See the third bullet item in this
If you want to automatically apply these
properties to all images, you will need to create a stylesheet customization
layer, copy the template named 'process.image' from fo/graphics.xsl, and modify
it to automatically set those properties. It's a long and complex
template, though, because it has to handle a lot of different combinations of
attributes and parameters.
----- Original Message -----
Sent: Tuesday, April 26, 2005 2:03
Subject: Re: [docbook-apps] Image scaling
in Docbook with XEP trick
Oh, I forgot, you're right.
The entire example can be found
In the example,
the source XML file: http://xep.xattic.com/xep/testsuite/usecases/image-scale.xml
set of XSL stylesheets: http://xep.xattic.com/xep/testsuite/usecases/generic.xsl
FO output: http://xep.xattic.com/xep/testsuite/usecases/image-scale.fo
example is pretty simple but I failed to adopt it for my
On 4/26/05, Bob Stayton <firstname.lastname@example.org> wrote:
aren't giving us enough information.
> Can you describe the properties
that RenderX recommends you use in the FO
> Sagehill Enterprises
> DocBook Consulting
> ----- Original Message -----
> From: "Zbyszek Cybulski" <email@example.com>
"docbook" < firstname.lastname@example.org>
Sent: Tuesday, April 26, 2005 1:13 AM
> Subject: [docbook-apps] Image
scaling in Docbook with XEP trick
> > Hi,
> > How do I auto-scale wide images in Docbook? I
have read the RenderX's
> > tutorial on scaling images (use of
scale-to-fit) but still don't know
> > how to incorporate this trick
into my own customization layer. The
> > example is shown for a
generic XML and I understand what happens there
> > but can't
translate it into Docbook stuff.
> > If I import the image-scale.xsl
stylesheet in my customization, it fails
> > since before I also
imported the docbook.xsl stylesheet. I have reviewed
> > the XSL-FO
output and it doesn't look as shown in the tutorial example.
> How do I modify image-scale.xsl and/or my customization
imports to make
> > it work?
> > Thanks in
> > Zbyszek
> To unsubscribe, e-mail: email@example.com
> For additional commands, e-mail: firstname.lastname@example.org