Inline Stacking and Block Stacking

This section describes inline stacking and block stacking, which are processes to stack smaller areas inline-wise are block-wise to form new larger areas.

Rendering formatted information on presentation medium usually involves two processes: the first process is to stack information to build a line, and the second process is to stack lines to build a page.

In XSL-FO, the above two processes are abstracted as two types of area stacking: Inline Stacking and Block Stacking.

Inline Stacking - A process of stacking formatted information areas inline-wise to form a new area like a line. For example, in English writing style, glyph areas are stacked one by one horizontally from left to right to form a new line of text.

Block Stacking - A process of stacking formatted information areas block-wise to form a new area like a page. For example, in English writing style, paragraph areas are stacked one by one vertically from top to bottom to form a new page area.

Inline Progression Direction - A formatting parameter indicates in which direction inline stacking should be constructed. For example, in English writing style, inline progression direction should point from left to right.

Block Progression Direction - A formatting parameter indicates in which direction block stacks should be constructed. For example, in English writing style, block progression direction should point from top to bottom.

The diagram below illustrates how inline stacking is used to stack several glyph areas to form a line area:

Inline Area and Inline Stacking
Inline Area and Inline Stacking

The diagram below illustrates how block stacking is used to stack two paragraphs and picture to form a page area:

Block Area and Block Stacking
Block Area and Block Stacking

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

 What Is XSL Area Model

 What Is an Area

Inline Stacking and Block Stacking

 XSL-FO Document Basics and Examples

 Page Layout Masters

 Block-Level Formatting Objects

 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