Properties

The XSL-FO objects themselves would not be nearly as useful were it not for the properties that can be manipulated to affect how an object is rendered. In the XSL-FO examples we have used so far, you have already seen properties such as font-size, which is a property used to specify the size (in points) of the font being used to display a line of text.

Properties are used to express a variety of qualities with objects, from the size and color of borders, to padding inside block areas, to background images and font sizes and colors. The XSL-FO properties are expressed as attributes, which are used with XML elements that represent objects. For example, with the block object element, we can use the font-family property attribute to specify ...

Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.