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

Re: Keep the separator together

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Sat, 21 Dec 2002 08:52:38 -0500
Message-Id: <>
To: www-xsl-fo@w3.org

At 2002-12-21 12:21 +0000, Kiki AMEDJA wrote:
>How do I keep the separator for paragraphs together?
>My separator is this
>  *
>* *
>which is two lines.
>Sometimes there's a page-break between the two-lines!
>I tried keep-together="always", but it wouldn't work!
>Any idea?

Did you wrap the two blocks in another block and put the property on the 
wrapping block?

   <block keep-together="always" text-align="center">
     <block>* *</block>

Alternatively you can use keep-with-next= on the first block or 
keep-with-previous= on the second block.

Perhaps the engine you are using doesn't support the property.

I hope this helps.

................ Ken

Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
-                             North America:  Feb 3 - Feb 7,2003

G. Ken Holman               mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.        http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next conference training:                          2003-03-03,06
Received on Saturday, 21 December 2002 08:52:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:56 UTC