[Develop] XSL-FO 使い方 2 (region)

<?xml version="1.0" encoding="UTF-8"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="ja">
<fo:layout-master-set>
<fo:simple-page-master page-height="148mm"
page-width="105mm"
margin-top="10mm"
margin-left="20mm"
margin-right="20mm"
margin-bottom="10mm"
master-name="PageMaster">
<fo:region-body background-color="#cccccc"
margin-top="20mm"
margin-left="20mm"
margin-right="20mm"
margin-bottom="20mm"/>
<fo:region-before background-color="#00ffff" extent="15mm"/>
<fo:region-after background-color="#00ffff" extent="15mm"/>
<fo:region-start background-color="#ffffcc" extent="15mm"/>
<fo:region-end background-color="#ffffcc" extent="15mm"/>
fo:simple-page-master>
fo:layout-master-set>

<fo:page-sequence initial-page-number="1" master-reference="PageMaster">
<fo:static-content flow-name="xsl-region-start">
<fo:block>region-startfo:block>
fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block>region-endfo:block>
fo:static-content>
<fo:static-content flow-name="xsl-region-before">
<fo:block>region-beforefo:block>
fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block>region-afterfo:block>
fo:static-content>

<fo:flow flow-name="xsl-region-body">
<fo:block>region-bodyfo:block>
fo:flow>
fo:page-sequence>
fo:root>

文章位置調整のパラメータは下表・下図のようになっている

simple-page-mastermargin-top(1)
margin-left(2)
margin-right(3)
margin-bottom(4)
region-bodymargin-top(5)
margin-left(6)
margin-right(7)
margin-bottom(8)
region-beforeextent(9)
region-startextent(10)
region-endextent(11)
region-afterextent(12)