YouTip LogoYouTip

Obj Region After

[![Image 1: XSL-FO Reference Manual](#) XSL-FO Reference Manual](#) * * * ## Definition and Usage The object defines the bottom area (footer) of a page. XSL-FO uses the following elements to define page areas: * defines the body area * defines the top area (header) * defines the bottom area (footer) * defines the left area (left sidebar) * defines the right area (right sidebar) **Note:** region-before, region-after, region-start, and region-end are all part of region-body. To prevent text inside region-body from overlapping text in other areas, the margins of region-body must be at least as large as the dimensions of these four sub-areas. **Note:** According to the XSL-FO 1.0 Recommendation standard, the padding and border-width properties must be set to 0. * * * ## Syntax ## Properties | Property | Property | | --- | --- | | background-attachment | clip | | background-color | display-align | | background-image | extent | | background-repeat | overflow | | background-position-horizontal | padding-after | | background-position-vertical | padding-before | | border-after-color | padding-bottom | | border-after-style | padding-end | | border-after-width | padding-left | | border-before-color | padding-right | | border-before-style | padding-start | | border-before-width | padding-top | | border-bottom-color | precedence | | border-bottom-style | region-name | | border-bottom-width | reference-orientation | | border-end-color | writing-mode | | border-end-style | | | border-end-width | | | border-left-color | | | border-left-style | | | border-left-width | | | border-right-color | | | border-right-style | | | border-right-width | | | border-start-color | | | border-start-style | | | border-start-width | | | border-top-color | | | border-top-style | | | border-top-width | | ### Example 1 XSL-FO uses page templates called "Page Masters" to define page layout. Each template must have a unique name: In the above example, three elements define three different templates. Each template (page-master) has a distinct name. The first template is named "intro". It can be used as a template for introductory pages. The second and third templates are named "left" and "right". They can be used as templates for even-numbered and odd-numbered pages, respectively. ### Example 2 This is an excerpt extracted from an XSL-FO document: The above code defines a "Simple Page Master Template" named "A4". The page width is 297 mm and height is 210 mm. All four page margins (top, bottom, left, right) are 1 cm each. The body margin is 3 cm (on all four sides). The before, after, start, and end regions of the body are each 2 cm. The body width in the above example can be calculated as: page width minus left and right margins and the region-body margins: 297mm - (2 x 1cm) - (2 x 3cm) = 297mm - 20mm - 60mm = 217mm Note that regions (region-start and region-end) are not included in this calculation. As previously explained, these regions are part of the body. * * XSL-FO Reference Manual](#)
← Obj Region BeforeObj Page Sequence Master β†’