xsl-list
[Top] [All Lists]

Re: Total number of pages with XSL-FO

2005-04-21 08:59:25
JBryant(_at_)s-s-t(_dot_)com wrote:
From a few messages ago:
--------------------------------------------------------
If you want to be absolutely sure that content appears on the last page,
put the last block that has content and the empty block into a table that
has two rows (one for each block). Then set keep-with-next="always" on the
first row. That way, the empty block can never be on a page by itself.
--------------------------------------------------------

Wouldn't it be easier to do just:

<fo:block id="last-page" line-height="0" keep-with-previous="always"/>

There will not be need to surround last block in document with the table. (I'm assuming that FO processor supports keep-with-next, which is not case for FOP.)

--
------------------------------------------------------------------
  Jirka Kosek     e-mail: jirka(_at_)kosek(_dot_)cz     http://www.kosek.cz
------------------------------------------------------------------
  Profesionální školení a poradenství v oblasti technologií XML.
     Podívejte se na náš nově spuštěný web http://DocBook.cz
       Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature