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
reference:
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
PM
Subject: Re: [docbook-apps] Image scaling
in Docbook with XEP trick
Oh, I forgot, you're right. The entire example can be found
at http://renderx.com/usecasestest.html
In the example,
the source XML file: http://xep.xattic.com/xep/testsuite/usecases/image-scale.xml The
set of XSL stylesheets: http://xep.xattic.com/xep/testsuite/usecases/generic.xsl
and http://xep.xattic.com/xep/testsuite/usecases/image-scale.xsl The
FO output: http://xep.xattic.com/xep/testsuite/usecases/image-scale.fo
The
example is pretty simple but I failed to adopt it for my
purposes.
-Z
On 4/26/05, Bob Stayton <bobs@sagehill.net> wrote: > You
aren't giving us enough information. > Can you describe the properties
that RenderX recommends you use in the FO > output? > >
Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > >
> ----- Original Message ----- > From: "Zbyszek Cybulski" <z.cybulski@gmail.com> > To:
<xep-support@renderx.com>;
"docbook" < docbook-apps@lists.oasis-open.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
advance, > > Zbyszek > > > >
--------------------------------------------------------------------- >
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
> > > > > > > >
|