The Master Set Layout: fo:layout-master-set

The Master Set Layout: fo:layout-master-set

The fo:layout-master-set object contains all the masters used in the document, including page sequence master objects, page master objects, and region master objects, which you apply to create page sequences, pages, and regions . You use masters to create templates for pages, page sequences, and regions.

The name of each master ends in -master in XSL. For example, the page master we'll use is the simple-page-master object. Page masters specify the subdivisions of a page and the geometry of these subdivisions. Page sequence masters specify the sequence of page masters that will be used to generate pages during the formatting.

You list the masters you want to use in the document in the <fo:layout-master-set> element, so I'll add that element to ch14_02.xsl now:

 <?xml version='1.0'?>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"     xmlns:fo="http://www.w3.org/1999/XSL/Format"     version='1.0'>     <xsl:template match="PLANETS">         <fo:root>  <fo:layout-master-set>  .     .     . 

To configure each page, you use a page master; the one I'll use here is the fo:simple-page-master object.



Real World XML
Real World XML (2nd Edition)
ISBN: 0735712867
EAN: 2147483647
Year: 2005
Pages: 440
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net