Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSL-FO Introduction

XSL-FO Introduction


XSL-FO is used to format XML data for output.


Prerequisites before you begin

Before you study XSL-FO, you should have a basic understanding of XML and XML namespaces.

If you want to learn these topics first, please read our XML Tutorial。


What is XSL-FO?


XSL-FO is about formatting

XSL-FO is an XML-based markup language used to describe the formatting (information) of XML data output to screens, paper, or other media.


XSL-FO is often called XSL

Why is there such confusion? Are XSL-FO and XSL the same thing?

Sort of, but we need to explain:

Styling is abouttransformation informationandformatting informationtwo aspects. When the World Wide Web Consortium (W3C) wrote their first XSL working draft, the draft included language syntax for both transforming and formatting XML documents.

Later, the W3C working group split this original draft into separate standards:

The rest of this tutorial is about formatting XML documents: XSL-FO, also known as XSL.


XSL-FO is a Web standard

XSL-FO became a W3C recommendation on October 15, 2001. It is often called XSL.

To read more about the W3C's XSL activities, please read our W3C Tutorial。