XSL-FO Tutorials - Herong's Tutorial Examples - v2.24, by Herong Yang
FOP Failed on "block" inside "inline"
This section provides a tutorial example showing the formatting issue with Apache FOP on the 'block' formatting object inside an 'inline' formatting object. It is not able to generate a full line for the 'block' formatting object like RenderX XEP.
In the previous tutorial, we saw that RenderX XEP was able to properly process an "inline" formatting object with a content mixed with a "block" formatting object.
But if you use Apache FOP, it will fail to process the "block" formatting object as a full line. It will generate a line some extra margin on both left and right sides.
The picture below gives you a comparison of what generated by Apache FOP and RenderX XEP from inline-with-Mixed-Content.fo:
Table of Contents
Apache™ FOP (Formatting Objects Processor)
XSL-FO Document Basics and Examples
Block-Level Formatting Objects
►Inline-Level Formatting Objects
What Are Inline-Level Formatting Objects?
What Is "inline" Formatting Object?
"inline" Splitting for Line Break
What Is "line-height" Attribute?
What Is "baseline-shift" Attribute?
►FOP Failed on "block" inside "inline"
What Is "inline-container" Formatting Object?
What Is "character" Formatting Object?
What Is "leader" Formatting Object?
What Are "page-number*" Formatting Objects?
Including Graphics in XSL-FO document
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