Sample XSL formatting objects XSL-FO documents are XML files with output information. They contain information about the output layout and output contents. XSL-FO documents are stored in files with a .fo or a .fob file extension. It is also quite common to …
Read More »XSL_Formatting_Objects
Formatting Object Basics
Formatting Object Basics Page Layout The root element of a formatting objects document is fo:root. This element contains one fo:layout-master-set element and one or more fo:page-sequence elements. The fo:page-sequence elements contain content; that is, text and images to be …
Read More »Common Formatting Objects
Common Formatting Objects • page-sequence–a major part (such as front or body) in which the basic page layout may differ from other parts • flow–a chapter- or section-like division within a page-sequence • block–a paragraph …
Read More »Page Layout
Page Layout The root element of a formatting objects document is fo:root. This element contains one fo:layout-master-set element and one or more fo:page-sequence elements. The fo:page-sequence elements contain content; that is, text and images to …
Read More »Content
The content (as opposed to markup) of an XSL-FO document is mostly text. Non-XML content such as GIF and JPEG images can be included in a fashion similar to the IMG element of HTML. Other forms of XML content, such as MathML and SVG, can be embedded directly …
Read More »Leaders and Rules
Leaders and Rules A rule is a block-level horizontal line inserted into text similar to the line below the chapter title on the first page of this chapter. The HR element in HTML produces a rule. A leader is a line that …
Read More »Graphics
XSL-FO (Formatting Objects )provides two elements for embedding pictures in a rendered document. The fo:external-graphic element inserts a non-XML graphic, such as a JPEG image. The fo:instream-foreign-object element inserts an XML document that is not an XSL-FO document, such as an SVG picture or …
Read More »Inlines
Inlines The fo:inline element has no particular effect on the layout of the page. Rather it’s an element on which you can hang formatting attributes such as font-style or color for application to the inline’s contents. The fo:inline formatting object is …
Read More »Footnotes
Footnotes The fo:footnote element creates a footnote. The author places the fo:footnote element in the flow exactly where the footnote reference such as 1 or * will occur. The fo:footnote element contains both the reference text and a fo:footnote-body block-level element containing …
Read More »Floats
A fo:float produces a floating box anchored to the top of the region where it occurs. A fo:float is most commonly used for graphics, charts, tables or other out-of-line content that needs to appear somewhere on the page, although precisely where …
Read More »Formatting Properties
By themselves, formatting objects say relatively little about how content is formatted. They merely put content in abstract boxes, which are placed in particular parts of a page. Attributes on the various formatting objects determine …
Read More »