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: [docbook] selectively add a border to graphics


I dont't know much yet about how DocBook XSL works, but to create a
border around an image in HTML, add the following attribute:

<xsl:attribute name="style">border-color: black; border-style:


<img style="border-color:black; border-style: solid;" ...

Note all style is in one attribute in HTML, instead of single attributes
like in FO.

Beats me where that must be added. Hopes it helps anyway.


Am Montag, den 05.11.2007, 01:23 -0800 schrieb Roman Banks:
> Hi guys,
> 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.
> For graphics.xsl in fo, you should add just:
> <fo:external-graphic>
> <xsl:if test="ancestor::figure[@role='bordered']">
> <xsl:attribute name="border-color">black</xsl:attribute>
> <xsl:attribute name="border-style">solid</xsl:attribute>
> </xsl:if>
> But what about HTML?
> Thanks in advance!
> Kind regards,
> Roman  
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

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