Area Models

Templates are an essential part of stylesheets that are designed for transformation. However, there are also some mechanisms that are used primarily by stylesheets designed for formatting. Area models are conceptually important for using stylesheets as a formatting mechanism. When the XSL processor creates formatted output based on the transformations in your stylesheet, it is creating a specialized type of result tree called the area tree.

The area tree consists of formatted rectangular areas based on the information specified in your stylesheet.

Every area has three parts, which can be manipulated by the stylesheet mechanism:

  • Content-rectangle— This is the rectangle that actually bounds the content of the node processed.

  • Padding— ...

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.