GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • FOP Home
  • Download
  • Quick Start Guide
  • Compliance
  • Getting Help
  • FAQs
  • FOP Wiki
  • Mailing Lists
  • License
  • XSL-FO
  • Examples
  • Bugs & Issues
  • FOP Wiki
  • Other Resources

This view

  • Original page
  • New address

GeezerVison is showing xmlgraphics.apache.org — Apache FOP™: Whitespace Management

 

Apache XML Graphics Project Logo

Apache FOP™¶

  • FOP Home
  • Download
  • Quick Start Guide
  • Compliance
  • Getting Help
  • FAQs
  • FOP Wiki
  • Mailing Lists
  • License
  • Resources¶

    • XSL-FO
    • Examples
    • Bugs & Issues
    • FOP Wiki
    • Other Resources
  • Project¶

    • News
    • Who We Are
    • Status
    • Known Issues
    • Changes
  • Versions¶

    • FOP Trunk (Development)¶

      • Overview
      • Upgrading
      • Using Apache FOP™¶

        • Build
        • Configure
        • Run
        • Embed
        • Servlets
        • Ant Task
        • Config Options
      • Features¶

        • Accessibility
        • Complex Scripts
        • Events
        • Extensions
        • Extensions Reference
        • Fonts
        • Graphics
        • Hyphenation
        • Intermediate Format
        • Metadata
        • Output Formats
        • PDF/A
        • PDF/X
        • PDF Signing & Encryption
        • PDF Images Plug-In
        • Whitespace Management
    • FOP 2.12¶

      • FOP 2.12 Overview
      • Release Notes
      • Changes (2.12)
      • Upgrading
      • Using Apache FOP 2.12¶

        • Build
        • Configure
        • Run
        • Embed
        • Servlets
        • Ant Task
        • Config Options
      • Features¶

        • Accessibility
        • Complex Scripts
        • Events
        • Extensions
        • Extensions Reference
        • Fonts
        • Graphics
        • Hyphenation
        • Intermediate Format
        • Metadata
        • Output Formats
        • PDF/A
        • PDF/X
        • PDF Signing & Encryption
        • PDF Images Plug-In
        • Whitespace Management
    • FOP 2.x¶

      • FOP 2.11¶

        • FOP 2.11 Overview
        • Release Notes
        • Changes (2.11)
        • Upgrading
        • Using Apache FOP 2.11¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Signing & Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.10¶

        • FOP 2.10 Overview
        • Release Notes
        • Changes (2.10)
        • Upgrading
        • Using Apache FOP 2.10¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Signing & Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.9¶

        • FOP 2.9 Overview
        • Release Notes
        • Changes (2.9)
        • Upgrading
        • Using Apache FOP 2.9¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.8¶

        • FOP 2.8 Overview
        • Release Notes
        • Changes (2.8)
        • Upgrading
        • Using Apache FOP 2.8¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.7¶

        • FOP 2.7 Overview
        • Release Notes
        • Changes (2.7)
        • Upgrading
        • Using Apache FOP 2.7¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.6¶

        • FOP 2.6 Overview
        • Release Notes
        • Changes (2.6)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.6¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.5¶

        • FOP 2.5 Overview
        • Release Notes
        • Changes (2.5)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.5¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.4¶

        • FOP 2.4 Overview
        • Release Notes
        • Changes (2.4)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.4¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.3¶

        • FOP 2.3 Overview
        • Release Notes
        • Changes (2.3)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.3¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.2¶

        • FOP 2.2 Overview
        • Release Notes
        • Changes (2.2)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.2¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.1¶

        • FOP 2.1 Overview
        • Release Notes
        • Changes (2.1)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.1¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
      • FOP 2.0¶

        • FOP 2.0 Overview
        • Release Notes
        • Changes (2.0)
        • Known Issues
        • Upgrading
        • Using Apache FOP 2.0¶

          • Build
          • Configure
          • Run
          • Embed
          • Servlets
          • Ant Task
        • Features¶

          • Accessibility
          • Complex Scripts
          • Events
          • Extensions
          • Fonts
          • Graphics
          • Hyphenation
          • Intermediate Format
          • Metadata
          • Output Formats
          • PDF/A
          • PDF/X
          • PDF Encryption
          • PDF Images Plug-In
          • Whitespace Management
    • FOP 1.1¶

      • FOP 1.1 Overview
      • Release Notes
      • Changes (1.1)
      • Known Issues
      • Upgrading
      • Using Apache FOP 1.1¶

        • Build
        • Configure
        • Run
        • Embed
        • Servlets
        • Ant Task
      • Features¶

        • Accessibility
        • Complex Scripts
        • Events
        • Extensions
        • Fonts
        • Graphics
        • Hyphenation
        • Intermediate Format
        • Metadata
        • Output Formats
        • PDF/A
        • PDF/X
        • PDF Encryption
    • FOP 1.0¶

      • FOP 1.0 Overview
      • Release Notes
      • Changes (1.0)
      • Known Issues
      • Upgrading
      • Using Apache FOP 1.0¶

        • Build
        • Configure
        • Run
        • Embed
        • Servlets
        • Ant Task
      • Features¶

        • Output Formats
        • Intermediate Format
        • PDF Encryption
        • PDF/A
        • PDF/X
        • Graphics
        • Fonts
        • Hyphenation
        • Extensions
        • Events
        • Metadata
        • Accessibility
  • FOP Development¶

    • General Information
    • Testing
    • Developer Tools
    • SVG Issues
    • Release Process
    • Coding Conventions
    • FAQ
    • Adding an Extension
    • Managing Documentation
    • RTFLib (jfor)
    • Implementation Overview
    • Unresolved Issues (Wiki)
    • Design¶

      • Design Introduction
      • Input Parsing
      • Images
      • PDF Library
      • Layout Managers
      • FO Tree
      • SVG
      • Area Tree
      • Optimisations
      • User Agent
      • Renderers
      • Extensions
      • Embedding FOP in Other Applications
      • Startup, Environment, Control
      • Properties
      • Layout
      • Page Breaking
  • Apache® XML Graphics¶

    • Project Overview¶

      • Who We Are
      • Legal Stuff
      • Project Charter
      • Mailing Lists
      • Code Repositories
      • ASF Sponsorship Program
      • ASF Thanks
      • Licenses
      • Apache XML Graphics Security
      • ASF Security

    Sub Projects¶

    • Apache Batik
    • Apache XML Graphics Commons

    Search Apache XML Graphics¶

    ApacheCon N. America¶

    ApacheCon North America

    • ApacheCon NA

    Hope to see you there!

    ApacheCon Europe¶

    ApacheCon Europe

    • ApacheCon Europe

    Hope to see you there!

    Apache Software Foundation

    Support the Apache Software Foundation

The Apache FOP Project

The Apache FOP™ Project

Apache FOP™: Whitespace Management

Overview

This page describes an extension for FOP’s page breaking algorithm that enables the handling of dynamic content. Dynamic content has multiple variants, only one of which will be inserted in the document. Variant selection is done in a First Come First Served manner and the first variant that fits within the remaining space in the current page is chosen. If no appropriate variant is found, the dynamic content will be skipped without affecting the rest of the document layout.

Example

Here is an example of dynamic content with two variants:

<fo:multi-switch fox:auto-toggle="select-first-fitting" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
    <fo:multi-case>
        <fo:block>First variant</fo:block>
    </fo:multi-case>
    <fo:multi-case>
        <fo:block>Second variant</fo:block>
    </fo:multi-case>
</fo:multi-switch>

Limitations

  • Space attributes (space-before, space-after) are not currently supported. This is primarily due to how space resolution is done in FOP, which requires the whole FO content to be known before doing page breaking.

  • Dynamic content inside a table cell does not work.

You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.