XSL Formatter Q&A
XSLT/XSL-FO/MathML TechnicsPagenation |
|
| Q. | I want to change the width of region-body in the middle of page sequence by using some page layouts. How ever, the body width doesn't change. Why? [No.2003021405] |
|---|---|
| A. |
This is a limitation of XSL Formatter.
<fo:layout-master-set>
<fo:simple-page-master master-name="master_first"
page-height="297mm" page-width="210mm" >
<fo:region-body margin-left="20mm" margin-right="20mm" />
</fo:simple-page-master>
<fo:simple-page-master master-name="master_rest"
page-height="297mm" page-width="210mm">
<fo:region-body margin-left="10mm" margin-right="10mm" />
</fo:simple-page-master>
<fo:simple-page-master master-name="master_last"
page-height="297mm" page-width="210mm">
<fo:region-body margin-left="10mm" margin-right="10mm" >
</fo:simple-page-master>
<fo:page-sequence-master master-name="main-sequence">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="master_first" page-position="first"/>
<fo:conditional-page-master-reference
master-reference="master_rest" page-position="rest"/>
<fo:conditional-page-master-reference
master-reference="master_last" page-position="last"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main-sequence">
<fo:flow flow-name="xsl-region-body">
.
.
.
</fo:flow>
</fo:page-sequence>
In the above example, actually the width of region-body on each page changes because the margin on the first page and the rest page is different. However, XSL Formatter doesn't support such a case. If you want to change the width of column, please create a new fo:flow for each different width of column. XSL Formatter V3.2 does not have this limitation. However, it is impossible to change width in the middle of the table. |