Templates and content

The root element of an XSL document is actually called Root. This element contains two major sections. First, templates are defined that specify the characteristics of the pages to display or print, including the size of these pages. More than one page template may be defined (for example, this book requires a different template for the preliminary pages than for the chapters, and the first page of each chapter differs from the remainder). The Layout Master Set element contains these templates:

					<root>
					<layout-master-set>
    <!-- TEMPLATES -->
  </layout-master-set>

  <!-- CONTENT -->
</root>
				

Some templates may have header and footer regions, and the even-numbered pages may differ from the odd-numbered pages (as they do in this ...

Get XSL companion, The 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.