The best XSL-FO document Tutorial In 2024, In this tutorial you can learn XSL-FO document,XSL-FO document structure,Structure explained,
XSL-FO documents are XML files with output information.
XSL-FO documents stored in .fo .fob file extension or file. You can also XSL-FO document is stored as an .xml file extension, doing so can make XSL-FO documents are easier to access XML editor.
XSL-FO document structure is as follows:
XSL-FO documents belonging to XML documents, and therefore need to start with an XML declaration:
<Fo: root> element is the root element of XSL-FO documents. The root element must declare XSL-FO namespace:
<Fo: layout-master-set> element contains one or more page templates:
Each <fo: simple-page-master> element contains a single page template. Each template must have a unique name (master-name):
One or more <fo: page-sequence> element can describe the page content. master-reference attribute with the same name to refer to the simple-page-master template:
NOTE: master-reference value "A4" does not actually describe a predefined page format.It is just a name. You can use any name like "MyPage", "MyTemplate" and so on.