[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Sidebar without title
Hi Claudio,
That space is caused by the first para element
in the sidebar, which generates an fo:block that looks like this:
<fo:block space-before.optimum="1em"
space-before.minimum="0.8em"
space-before.maximum="1.2em">para in sidebar</fo:block> So to handle the case of para first in a sidebar,
you could add a template like this to your customization layer:
<xsl:template
match="d:sidebar/*[1][self::d:para]">
<fo:block> <xsl:apply-templates/> </fo:block> </xsl:template> This matches on the first child element of sidebar
if it is a para element, and then does not apply the 'normal.para.spacing'
attribute-set to its block. If you are using the non-namespaced
stylesheets, omit the d: namespaces prefixes.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]