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] HTML / HTMLHelp: ignore.image.scaling parameter

On Wed, May 07, 2003 at 12:51:27PM +0930, Paul A. Hoadley wrote:
> On Tue, May 06, 2003 at 10:20:34AM -0700, Bob Stayton wrote:
> > On Tue, May 06, 2003 at 06:12:22PM +0930, Paul A. Hoadley wrote:
> >
> > > In HTMLHelp (and HTML) I want to use the full size, unscaled
> > > screenshot.  I have tried:
> > > 
> > >   <xsl:param name='ignore.image.scaling' select="1"/>
> > > 
> > > in my driver, but I still get explicit widths added to the <img>
> > > elements in the HTML output:
> > 
> > Yes, that parameter should work.  It looks like the contentwidth
> > attribute is being processed even when that parameter is set, which
> > is a bug in the stylesheet.  I went ahead and filed a bug report
> > (733406) on it.  I'd fix it, but the image scaling code is a bit
> > complex, and I think Norm should look at it.
> Thanks.
> > The scalefit attribute isn't the problem, because it is ignored when
> > contentwidth is used.  The contentwidth, scale, and scalefit
> > attributes are mutually exclusive. If more than one of these
> > attributes is used on an image, then the earliest one in the list
> > takes precedence.
> Yes, I read that at sagehill.net.  :-)  It looks like for now I am
> going to have to go in and manually add another imageobject with no
> scaling and role="html" for each screenshot.  It's about 75 images,
> so, before I embark, can anyone suggest a workaround so that I get my
> oversized images scaled down, but I can use ignore.image.scaling for
> HTML?  Or is contentwidth already the right attribute?

Here is a quicker workaround.  Add this line to
your customization layer for HTML processing:

<xsl:template name="process.image.attributes"/>

The 'process.image.attributes' template is used to
output the scaling attributes in the img tag.
This creates an empty template that overwrites the
original.  You still get the filename and alignment,
since they are not output by that template,
but no scaling attributes.  Kind of crude, but
it should work.


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

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