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

Apache FOP Issue with "block" inside "inline"

Last update: 2016.

Table of Contents

 About This XSL-FO Tutorial 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

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?

 "inline" with Mixed Content

FOP Failed on "block" inside "inline"

 What Is "inline-container" Formatting Object?

 What Is "charecter" Formatting Object?

 What Is "leader" Formatting Object?

 What Are "page-number*" 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


 PDF Printing Version