Which version of FOP are you using? First of all, if you want to keep within a page you should say keep-together.within-page instead of just keep-together. Second, you should need keep-together only on the list-item and not also on the list-item-block. And finally, this doesn't appear to work in FOP 0.20.5. But I did try 0.94 and 0.95beta, and those both work just fine.
-----Original Message----- From: bonekrusher [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2008 1:58 PM To: [email protected] Subject: fo:list-item - Keep together Hi, How do I keep a list-item's contents from splitting on a page break? I've tried using keep-together="always", but it still splits the contents. <xsl:template match="NOTE"> <fo:list-block provisional-distance-between-starts="7mm" provisional-label-separation="5mm" start-indent="2mm" space-before.optimum="4pt" space-after.optimum="4pt"> <xsl:for-each select="PARA"> <fo:list-item keep-together="always"> <fo:list-item-label end-indent="label-end()"> <fo:block>NOTE:</fo:block> </fo:list-item-label> <fo:list-item-body start-indent="15mm" keep-together="always"> <fo:block> <xsl:apply-templates select="."/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:for-each> </fo:list-block> </xsl:template> -- View this message in context: http://www.nabble.com/fo%3Alist-item---Keep-together-tp18266211p18266211.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
