Hi all.
I have a short question about spaces and precedences:
What I want is to suppress additional space if one headline directly follows another.
To achieve this I wrote the template with FOs below but it does not work (I played a bit with attributes and values and could not find any other working solution using precendences). Could anybody please tell me whether my FO is wrong or this is a limitation of FOP?
Thank you in advance! Ralf
PS.: I know that I might just leave out the space-after of the top level headline. :-)
<xsl:template match="products"> <fo:block font-family="serif" font-style="normal" font-weight="bold" font-size="16pt" space-before="50pt" space-after="20pt" space-after.precedence="0" space-after.minimum="0pt" id="[EMAIL PROTECTED]"> <xsl:number count="//[EMAIL PROTECTED]" format="1."/> <xsl:value-of select="./prolog/title"/> </fo:block> <xsl:for-each select="./product"> <fo:block font-family="serif" font-style="normal" font-weight="bold" font-size="12pt" space-before="30pt" space-after="20pt" id="[EMAIL PROTECTED]" space-before.precedence="10" space-before.minimum="0pt"> <xsl:number count="//[EMAIL PROTECTED]" level="multiple" format="1.1. "/> <xsl:value-of select="./prolog/title"/> </fo:block> <xsl:apply-templates select="product_info"/> <!-- etc. ... --> </xsl:for-each> </xsl:template>