This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Problem with images when generating HTML output ...
- From: Bob Stayton <bobs at caldera dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>,'Giuseppe Greco' <giuseppe dot greco at bluewin dot ch>,DocBook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 31 Dec 2002 12:43:57 -0800
- Subject: Re: DOCBOOK-APPS: Problem with images when generating HTML output ...
- References: <E08C8F26F6901D42B1201763D125853815B3ED@ntdevexc.win.ansys.com>
On Mon, Dec 30, 2002 at 09:04:52AM -0500, Jeff Beal wrote:
> The stylesheets don't add extensions to match the format. They assume the
> filename is correct and use the format as part of the mediaobject selection
> mechanism. In order to do what you want, you'd have to copy and customize
> the template named "process.image" in graphics.xsl.
Actually, while modifying the selection process, I
discovered yet another obscure feature of the stylesheets.
The selection process actually *will* add an extension to
an extensionless filename if you set the
'graphic.default.extension' parameter to the extension
(without the dot). For filenames without an extension
the stylesheet will add that extension when testing
for a valid graphics filename.
So another method of selecting your graphics file
would be to use one imageobject without an extension,
and pass the desired extension on the command line or in
your stylesheet with that parameter. You have to be
consistent, though, as you only get one choice.
Personally, I would rather select using role on
multiple imageobjects, which will be in the next
release of the stylesheets. Then it isn't dependent
on remembering to set the parameter.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com