Tuesday, March 21, 2006

Prevent Pagebreak with xsl-fo

If you want to prevent Pagebreak within a fo:table-row you have to add the following attribute to your row:
<fo:table-row column="always">
Other possible values than "always" are:
  • auto ... no restrictions for page break
  • Integer-Values ... e.g. 3. No Pagebreak if there is no other, stronger pagebreak requirement
keep-together. can also be used with
  • within-column for pagebreak in one line
  • within-page for pagebreak in one page
the Attribute can be added to
  • fo:basic-link
  • fo:block
  • fo:block-container
  • fo:inline
  • fo:inline-container
  • fo:list-block
  • fo:list-item
  • fo:list-item-body
  • fo:list-item-label
  • fo:table
  • fo:table-and-caption
  • fo:table-caption
  • fo:table-row

No comments: