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] Image scaling in Docbook with XEP trick


Thanks, Bob.

I have figured it out myself since there were no response from other 
readers of the list. One can count on you, I appreciate.
I want to complete this task, because the screenshots I have included in 
a manual I am working on are not the same width and some of them have to 
be automatically resized to fit the page width while the others should 
be originally sized.
I'll let you know if I come to any results.

Tks,
-Z


Bob Stayton wrote:

> 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:
>  
> http://www.sagehill.net/docbookxsl/ImageSizing.html
>  
> 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.
>  
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net <mailto:bobs@sagehill.net>
>  
>  
>
>     ----- Original Message -----
>     *From:* Zbyszek Cybulski <mailto:z.cybulski@gmail.com>
>     *To:* DocBook Apps <mailto:docbook-apps@lists.oasis-open.org>
>     *Cc:* Bob Stayton <mailto:bobs@sagehill.net>
>     *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
>     <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
>     <mailto: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 <mailto:bobs@sagehill.net>
>     >
>     >
>     > ----- Original Message -----
>     > From: "Zbyszek Cybulski" <z.cybulski@gmail.com
>     <mailto:z.cybulski@gmail.com>>
>     > To: <xep-support@renderx.com <mailto:xep-support@renderx.com>>;
>     "docbook" < docbook-apps@lists.oasis-open.org
>     <mailto: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
>     <mailto:docbook-apps-unsubscribe@lists.oasis-open.org>
>     > > For additional commands, e-mail:
>     docbook-apps-help@lists.oasis-open.org
>     <mailto:docbook-apps-help@lists.oasis-open.org>
>     > >
>     > >
>     > >
>     >
>     >
>



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