XSL-FO Areas
XSL-FO uses rectangular boxes (areas) to display output.
XSL-FO Areas
The XSL formatting model defines a series of rectangular areas (boxes) to display output.
All output (text, images, etc.) is formatted into these boxes and then displayed or printed to a target medium.
Let's examine the following areas:
- Pages
- Regions
- Block areas
- Line areas
- Inline areas
XSL-FO Pages
XSL-FO output is formatted into pages. Printed output is typically divided into many separate pages. Browser output often becomes a single long page.
XSL-FO Pages contain regions.
XSL-FO Regions
Each XSL-FO page contains a series of Regions:
- region-body (main body of the page)
- region-before (header of the page)
- region-after (footer of the page)
- region-start (left sidebar)
- region-end (right sidebar)
XSL-FO Regions contain block areas.
XSL-FO Block Areas
XSL-FO Block Areas define small block elements (usually starting on a new line), such as paragraphs, tables, and lists.
XSL-FO Block Areas contain other block areas, but most often they contain line areas.
XSL-FO Line Areas
XSL-FO Line Areas define text lines within block areas.
XSL-FO Line Areas contain inline areas.
XSL-FO Inline Areas
XSL-FO Inline Areas define text within lines (emphasis marks, single characters, images, etc.).