The XSL-FO Formatting Properties

You use the XSL-FO formatting properties to customize the actions of the formatting objects that were listed in the preceding section, and you use formatting properties as element attributes in XSL-FO documents. For example, here’s how I use formatting properties to set the font family, font size, and font weight of text in a block:

<fo:block color="blue" font-family="Times" 
    font-size="36pt" font-weight="bold"> 
    Hello from XSL-FO! 
</fo:block> 

You can find the complete list of XSL-FO properties and their descriptions at www.w3.org/TR/xsl/slice7.html. Many of the XSL-FO properties are inherited from the specification for cascading stylesheets, version 2, CSS2, which you can find at www.w3.org/TR/REC-CSS2.

The ...

Get Inside XSLT 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.