Home / XSL / XSL_Formatting_Objects

XSL_Formatting_Objects

Sample XSL formatting objects

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 …

Read More »

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, …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

Read More »