Area Model of List Item, Label and Body

This section provides a tutorial example showing area model of list-item, list-item-label and list-item-body formatting objects. start-indent starts from left edge of the list-block, not the list-item

To help us understanding better on how to control the location of list item label and body, I wrote another tutorial example,, to illustrate the list item area model:

<?xml version="1.0" encoding="utf-8"?>
 - Copyright (c) 2006 All Rights Reserved.
<fo:root xmlns:fo="">
  <fo:simple-page-master master-name="page" 
   margin="0.1in" page-height="5in" page-width="5in">
   <fo:region-body region-name="body" background-color="#eeffff"/>
 <fo:page-sequence master-reference="page">
  <fo:flow flow-name="body">
    font-weight="bold">list-item Area Model:</fo:block>
<fo:list-block border-width="4px" border-style="solid" margin="0pt">
 <fo:list-item margin="20pt" border-width="2px" border-style="double">
  <fo:list-item-label start-indent="40pt">
   <fo:block border-width="1px" border-style="dotted" padding="10pt"
    margin="0pt" background-color="#ffddff">Bookmarks</fo:block>
  <fo:list-item-body start-indent="60pt">
   <fo:block border-width="1px" border-style="solid" padding="10pt" 
    margin-top="20pt" margin="0pt" background-color="#dddddd">
Allowing the format to specify a string of text in a separate window 
that can be selected by the user. When selected, the document window 
scrolls immediately to a specific region of the document.
 <fo:list-item margin-top="10pt">
  <fo:list-item-body start-indent="60pt">
   Supporting the generation of an index that might be found at the 
   back of a book. This is done through referencing of properly 
   marked-up elements in the FO document.

If you process this example XSL-FO document with Apache FOP, you will see areas of list-block, list-item, list-item-label, and list-item-body displayed with different colors and borders:

List Item Area Model
List Item Area Model

Note that:

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

 Inline-Level Formatting Objects

 Including Graphics in XSL-FO document

 Table of Rows and Columns

List, Item, Label, and Body

 List Formatting Object Tree

 Impact of start-indent on list-item-body

Area Model of 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


 Full Version in PDF/ePUB