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 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 now commonly referred to as XSL
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:
- XSLT, the language for transforming XML documents
- XSL or XSL-FO, the language for formatting XML documents
- XPath, the language for navigating through XML documents via elements and attributes
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。