W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2002

Question about keep-together

From: Sameer Parekh <ParekhS@myhealthchoice.com>
Date: Thu, 17 Oct 2002 11:20:53 -0400 (EDT)
Message-ID: <B266DD4CE812F54296338E50279468AB01BA07@healthchoiceex.healthchoice.local>
To: <www-xsl-fo@w3.org>

Hello everyone
I have a blovk that consists of 3 blocks within it.
I am trying to work on something like a directory and on the pdf page, i have 5 columns. If there is not enough room for a whole block to fit together on one column, i directly want to get it on the next column instead of half the information being on one column and the other half on another one.
I looked up some documentation and thought that the keep-together property on the outermost block will do it, but it did not work.
Anybody got any ideas?
Here is the sample:

<xsl:for-each select="child::facility">
<fo:block keep-together="always">
<fo:block font-size="7pt" font-weight="bold" space-before="2mm">
<xsl:value-of select = "attribute::FacilityName"/>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::Address"/>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::City"/>
<xsl:value-of select="attribute::State"/>
<xsl:text> </xsl:text>
<xsl:value-of select="attribute::Zip"/>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::Phone"/>

Any help will be appreciated.
Received on Thursday, 17 October 2002 14:41:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC