XSL-FO Page Size

XSL-FO uses the following attributes to define the size of a page:

  • page-width defines the width of a page
  • page-height defines the height of a page

XSL-FO Page Margins

XSL-FO uses the following attributes to define the margins of a page:

  • margin-top defines the top margin
  • margin-bottom defines the bottom margin
  • margin-left defines the left margin
  • margin-right defines the right margin
  • margin defines all four margins

XSL-FO Page Regions

XSL-FO uses the following elements to define the regions of a page:

  • region-body defines the body region
  • region-before defines the top region (header)
  • region-after defines the bottom region (footer)
  • region-start defines the left region (left sidebar)
  • region-end defines the right region (right sidebar)

Note that the region-before, region-after, region-start, and region-end is a part of the body region. To avoid text in the body region to overwrite text in these regions, the body region must have margins at least the size of these regions.

page

----from W3C school Page