OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: RE: selectively add a border to graphics


Roman Banks [mailto:technical_wr@yahoo.com] wrote:

>
Does anybody know how should I customize the graphics.xsl in order to selectively create a border around graphics in my HTML output? For PDF, it works nicely, but I can't find place in graphics.xsl to do the same thing for HTML.

 
We're currently using an older version of the style sheets, in which I can do something similar for HTML output by adding the following inside the <xsl:element> element of the "process.image" template:
 
<xsl:if test="ancestor::figure[@role='bordered']">
 <xsl:attribute name="style">
  <xsl:text>border-style:solid;</xsl:text>
 </xsl:attribute>
</xsl:if>
 
It looks like the current templates are similar enough that this should still work, though to be thorough you might also want to remove the following line in the processing of non-scaled images:
 
<xsl:attribute name="border">0</xsl:attribute>
 
I'm not sure why that's there; it might be to turn off the automatic border that some browsers place around images that are links.
 
 
Rob Cavicchio
Senior Technical Writer
EMC Captiva
EMC Corporation
10145 Pacific Heights Boulevard, 6th Floor
San Diego, CA 92121-4234

P: (858) 320-1208
F: (858) 320-1010
E: Cavicchio_Rob@emc.com

The opinions expressed in this message are my own and should in no way be interpreted to reflect the opinions of EMC.
 


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