Definitive XSL-FO
4.4.1 Simple page layout definition
Every different page layout to be rendered must be described separately.
A page's page viewport area's content rectangle defines the page dimensions.
Every page layout has at least a "middle" body region (see Figure 4-2).
Perimeter regions cut into the body region.
Regions may have different reference orientations and writing modes.
There are important region name constraints on multiple page masters.
4.4.2 Spans and columns in simple page geometry
Hierarchy of reference areas within page includes spans and columns.
Only evenly- spaced columns are allowed.
Only main reference area wide spans are allowed.
Columns are balanced within each span reference area.
Consider a before/after situation of a formatter flowing a mixture of spanned and un-spanned blocks shown in the two sides of Figure 4-11.
Figure 4-11. Hierarchy of span areas
4.4.3 The simple-page-master object
Purpose
Content
Property sets
Other required property
Other optional properties
Shorthand influencing the above properties
The use of the XSL-FO page description element is shown in Example 4-2. 4.4.4 The region-body object
Purpose
Example 4-2 The use of the XSL-FO page description element
Line 01 <?xml version="1.0" encoding="utf-8"?> 02 <root xmlns="http://www.w3.org/1999/XSL/Format" font-size="16pt"> 03 <layout-master-set> 04 <simple-page-master master-name="bookpage" 05 page-height="297mm" page-width="210mm" 06 margin-top="15mm" margin-bottom="15mm" 07 margin-left="15mm" margin-right="15mm"> 08 <region-body region-name="bookpage-body" 09 margin-top="5mm" margin-bottom="5mm"/> 10 </simple-page-master> 11 </layout-master-set> 12 <page-sequence master-reference="bookpage"> 13 <title>Hello world example</title> 14 <flow flow-name="bookpage-body"> 15 <block>Hello XSL-FO!</block> 16 </flow> 17 </page-sequence> 18 </root> Content
Property sets
Other required property
Other optional properties
Properties of note
The page body description element is shown in Example 4-3. Example 4-3 The page body description element
Line 01 <?xml version="1.0" encoding="utf-8"?> 02 <root xmlns="http://www.w3.org/1999/XSL/Format" font-size="16pt"> 03 <layout-master-set> 04 <simple-page-master master-name="bookpage" 05 page-height="297mm" page-width="210mm" 06 margin-top="15mm" margin-bottom="15mm" 07 margin-left="15mm" margin-right="15mm"> 08 <region-body region-name="bookpage-body" 09 margin-top="5mm" margin-bottom="5mm"/> 10 </simple-page-master> 11 </layout-master-set> 12 <page-sequence master-reference="bookpage"> 13 <title>Hello world example</title> 14 <flow flow-name="bookpage-body"> 15 <block>Hello XSL-FO!</block> 16 </flow> 17 </page-sequence> 18 </root> 4.4.5 Page sequence titling
A sequence of pages can be assigned a title
This is a portability issue with respect to development.
4.4.6 The title object
Purpose
Content
Property sets
Other optional properties
Shorthand influencing the above properties
The XSL-FO page body description element is shown in Example 4-4. Example 4-4 The XSL-FO page body description element
Line 01 <?xml version="1.0" encoding="utf-8"?> 02 <root xmlns="http://www.w3.org/1999/XSL/Format" font-size="16pt"> 03 <layout-master-set> 04 <simple-page-master master-name="bookpage" 05 page-height="297mm" page-width="210mm" 06 margin-top="15mm" margin-bottom="15mm" 07 margin-left="15mm" margin-right="15mm"> 08 <region-body region-name="bookpage-body" 09 margin-top="5mm" margin-bottom="5mm"/> 10 </simple-page-master> 11 </layout-master-set> 12 <page-sequence master-reference="bookpage"> 13 <title>Hello world example</title> 14 <flow flow-name="bookpage-body"> 15 <block>Hello XSL-FO!</block> 16 </flow> 17 </page-sequence> 18 </root> |