Introduction to XSL-FO
XSL-FO is used for formatting XML data for output.
Prerequisites
Before you learn XSL-FO, you should have a basic understanding of XML and XML namespaces.
If you wish to learn these topics first, please read our XML Tutorial.
What is XSL-FO?
- XSL-FO is a language for formatting XML data.
- XSL-FO stands for Extensible Stylesheet Language Formatting Objects.
- XSL-FO is based on XML.
- XSL-FO is a W3C recommendation.
- XSL-FO is commonly referred to as XSL.
XSL-FO is related to formatting
XSL-FO is an XML-based markup language used to describe the formatting (information) of XML data for output to screens, paper, or other media.
XSL-FO is commonly referred to as XSL
Why is there such confusion? Are XSL-FO and XSL the same thing?
You could say so, but we need to explain:
Styling involves both transforming information and formatting information. When the World Wide Web Consortium (W3C) wrote their first XSL working draft, it included syntax for languages related to transforming and formatting XML documents.
Later, the W3C working group split the original draft into separate standards:
- XSLT, a language for transforming XML documents.
- XSL or XSL-FO, a language for formatting XML documents.
- XPath, a language for navigating through elements and attributes in XML documents.
The rest of this tutorial is about formatting XML documents: XSL-FO, also known as XSL.
XSL-FO is a web standard
XSL-FO was established as a W3C recommendation on October 15, 2001. It is commonly referred to as XSL.
For more information about W3C's XSL activities, please read our W3C Tutorial.