[xep-support] Re: How to specify location specific margins for sidebars

From: Andreas Siegert <afxml@atsec.com>
Date: Tue Nov 30 2010 - 07:35:33 PST

Nobody has a clue?

cheers
afx

On 21.11.2010 14:47, Andreas Siegert wrote:
> Hi,
>
> I am using xep as a Docbook processor with docbook 4. The only reason why
> I am using XEP instead of FOP is the sidebars, which work nicely in most
> aspects but two:
>
> I can not figure out how to make the padding/margins between the sidebar
> (that holds an image) adjust to the location of the sidebar.
> The sidebar is specified as being inside on a doublesided layout.
> I have not found a way to specify the left and right margins so that they
> adjust to 0 for the side of the sidebar that is inside while keeping a
> 0.5em margin on the side where the text flows around it.
> I am using the following syle sheet entry:
>
> <xsl:param name="sidebar.float.width">5cm</xsl:param>
> <xsl:param name="sidebar.float.type">inside</xsl:param>
>
> <xsl:attribute-set name="sidebar.properties">
> <xsl:attribute name="border-style">none</xsl:attribute>
> <xsl:attribute name="border-width">0</xsl:attribute>
> <xsl:attribute name="border-color">black</xsl:attribute>
> <xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
> <xsl:attribute name="padding-top">0em</xsl:attribute>
> <xsl:attribute name="padding-bottom">-1.3em</xsl:attribute>
> <xsl:attribute name="padding-left">0mm</xsl:attribute>
> <xsl:attribute name="padding-right">0mm</xsl:attribute>
>
> <xsl:attribute name="margin-top">0pt</xsl:attribute>
> <xsl:attribute name="margin-bottom">1pt</xsl:attribute>
> <xsl:attribute
> name="margin-{$direction.align.start}">0.5em</xsl:attribute>
> <xsl:attribute
> name="margin-{$direction.align.end}">0.5em</xsl:attribute>
> </xsl:attribute-set>
>
>
> I am also running into some wierd issues with padding, that's why I have
> set a negative one on top.
> Occasionally I get about 1.5 lines margin on the bottom instead of just
> half a line...
>
> How can I get a handle on this?
>
> thx
> afx

-- 
atsec information security GmbH, Steinstrasse 70, D-81667 München, Germany
    Phone: +49-89-44249830  /  Fax: +49-89-44249831  /  Web: atsec.com
         HRB: 129439 (Amtsgericht München)   /   Geschäftsführer:
                Salvatore la Pietra, Staffan Persson
!DSPAM:87,4cf519cb63736194015379!
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Tue Nov 30 07:35:51 2010

This archive was generated by hypermail 2.1.8 : Tue Nov 30 2010 - 07:35:52 PST