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] How do I remove the border around Webhelp graphics?


Here's the XML for my graphic:

<mediaobject>
	<imageobject>
		<imagedata contentwidth="3.5in" width="3.5in" fileref="graphics/test.png"/>
	</imageobject>
</mediaobject>

In the resulting Webhelp HTML output, the graphic is placed within a table that is used for a viewport:

<div class="mediaobject" align="left">
  <table border="0" summary="manufactured viewport for HTML img" style="cellpadding: 0; cellspacing: 0;" width="315">
    <tr>
      <td align="left"><img src="graphics/test.png" width="315" /></td>
    </tr>
  </table>
</div>

Looking at the XML source for your documentation for the Webhelp stylesheet, I noticed that when you added a graphic the <imagedata> element has only a fileref attribute, like this:

<imagedata fileref="graphics/test.png"/>

In the resulting Webhelp HTML output, the graphic is NOT placed within a table:

<div class="figure-contents">
  <div class="mediaobject"><img src="graphics/test.png" /></div>
</div>

I found that the best way to solve this problem is to set the following parameter:

<xsl:param name="make.graphic.viewport">0</xsl:param>

This prevents a table from being used to frame the image.

Regards,
Jeff

-----Original Message-----
From: David Cramer [mailto:david@thingbag.net] 
Sent: Tuesday, July 10, 2012 7:55 PM
To: Jeff Powanda
Cc: 'docbook-apps@lists.oasis-open.org'
Subject: Re: [docbook-apps] How do I remove the border around Webhelp graphics?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/10/2012 04:50 PM, Jeff Powanda wrote:
> I?m happy with the output generated by the default Webhelp
> stylesheet except for one problem:  graphics have a visible border
> around them that I?d like to remove. Not sure what I need to
> change. Do I need to update the positioning.css file?

I'm sure it's a css thing, but I don't see any border around the image
on this page:

http://snapshots.docbook.org/xsl/webhelp/docs/content/ch02s05.html

Can you provide or point to an example that shows the problem? (output
and markup would be great)

Thanks,
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP/OsbAAoJEMHeSXG7afUhz2gH+QEHkIlyfi76wMvG+OIwufeA
0GDgRxqUR0ymluV/5lnqRLb1mtkOcnh7yJb2pkLx00aaVDXw2EzQAb+oSDMBmDt6
h5YLsnOqwqdV6t+rDobzCokXv/DhFfgImENrk+ilkvtzxGG0dxcVieWLxCMo5k9c
aGieiwl3Ttxw9FkM2ir3Et/er8aI3Q3R4SB4PWk+CarBnuWP1d9jxP6D/2vonr/u
hDH2ULT6OENXwcA0OoAKlWEW/jOFT4C8TPAp5oMjR7kPEbDlKupJiQ0cOACUQf8o
7eiEawNILGdo9xVnPkE9Zs7zRGvoxYphqhzRnPlcXdnVqf1ugBUvRO0CxOv8jM0=
=Bl8W
-----END PGP SIGNATURE-----


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