XSL-FO Tutorials - Herong's Tutorial Examples
∟Block-Level Formatting Objects
∟What Is "block" Formatting Object?
This section describes 'block' formatting object, which generates one or more block areas on the target device with its content.
What Is a "block" Formatting Object?
"block" is the most commonly used block-level formatting object that generates
a block area on the target device.
A "block" formatting object usually represents a paragraph of text
with the following main attributes:
- margin-*="..." -
Optional attributes to specify the margin on the 4 sides of the block.
Default is margin="0pt".
- border-*="..." -
Optional attributes to specify the border on the 4 sides of the block.
Default is border="0pt".
- padding-*="..." -
Optional attributes to specify the padding on the 4 sides of the block.
Default is padding="0pt".
- background-*="..." -
Optional attributes to specify background color and other related properties of the block.
Default is background-color="transparent".
- font-*="..." -
Optional attributes to specify the font family and other related properties
for any text to be generated in the block.
Default depends on the XSL processor.
- keep-*="..." -
Optional attribute to specify whether to keep this block together on a single page or column.
Default is keep-together="auto", meaning don't care.
When keep-together="always" is specified, this block will be kept together.
- top="...", bottom="...", left="...", and right="..." -
Optional attributes to specify offset of its generated block areas from its container edges.
Defaults are no offsets.
- span="..." -
Optional attribute to specify whether this block should span into multiple columns.
Default is span="none".
- text-align="..." -
Optional attribute to specify how text should be aligned.
Default is text-align="start".
See next sections for examples of how to use "block".
Table of Contents
About This Book
Introduction of XSL-FO
Apache™ FOP (Formatting Objects Processor)
RenderX XEP as an XSL-FO Tool
Introduction of Area Model
XSL-FO Document Basics and Examples
Page Layout Masters
►Block-Level Formatting Objects
What Are Block-Level Formatting Objects
►What Is "block" Formatting Object?
"block" Formatting Object Examples
Margin Collapsed between Block Areas
space-before/space-after vs. Margin
Block Splitting for Page Break
"block" with Mixed Content
Controlling White Space Characters
What Is "block-container" Formatting Object?
Inline-Level Formatting Objects
Including Graphics in XSL-FO document
Table of Rows and Columns
List, Item, Label, and Body
Floating Blocks - "float" and "footnote"
Hyperlinks, Table of Contents and Indexes
Headers and Footers using "static-content"
Font Attributes and Font Families
Apache FOP Font Configurations
RenderX XEP Font Configurations
Converting HTML to PDF
References
Full Version in PDF/ePUB