xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: smushing table text together
Date Wed, 04 Sep 2002 19:45:05 GMT
Barry Hansen wrote:
> I've got a table that has a cell that has several potential blocks in it. I
> want to keep the blocks spaced out but place them close to the cell border
> if there is no other text.

If you are using XSLT to generate the FO, generate
the space-after for the first block only if there
will be a following block, for example if you are
transforming <p> into <fo:block>:
     <xsl:if test="following-sibling::p"
       <xsl:attribute name="space-after">10pt</xsl:attribute>

A pure FO realisation could take advantage of space
conditionality, unfortunately, FOP currently does
not implement this feature completely.


View raw message