Question about keep-together

"Sameer Parekh" <[email protected]>
Newsgroups gmane.text.xml.xsl.general
Message-ID <B266DD4CE812F54296338E50279468AB01BA07@healthchoiceex.healthchoice.local>



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>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::Address"/>
</fo:block>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::City"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="attribute::State"/>
<xsl:text> </xsl:text>
<xsl:value-of select="attribute::Zip"/>
</fo:block>
<fo:block font-size="7pt">
<xsl:value-of select="attribute::Phone"/>
</fo:block>
</fo:block>
</xsl:for-each>

Any help will be appreciated.
Thanks,
Sameer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.