using different margin settings in <fo:layout-mast
i have a master.xsl which is used to generate the word document,m using JFor Api.
in my case, my requirement is to pick a specific margin settings depending upn the value of <fo:page-sequence>, but some how specifications always picks the last margin settings i.e. in the followings
<fo:layout-master-set>
<fo:simple-page-master master-name="content" margin-bottom="1.2in" margin-right="1in" margin-left="1in" margin-top="0.5in"
page-height="29.7cm"
page-width="21cm">
<fo:region-body />
<fo:region-after />
</fo:simple-page-master>
<fo:simple-page-master master-name="tableofcontents" margin-bottom="1in" margin-right="1in" margin-left="1in" margin-top="0.5in"
page-height="29.7cm"
page-width="21cm">
<fo:region-body />
<fo:region-after />
</fo:simple-page-master>
if the <fo:layout-master-set> tag has more than one <fo:simple-page-master> tags, it always picks the last margin settings no matter what is provided through <fo:page-sequence master-reference=" ">
Although I have tried few things including the following one inside the </fo:layout-master-set> tag
</fo:page-sequence-master>
<fo:page-sequence-master master-name="content">
<fo:single-page-master-reference master-name="content"/>
</fo:page-sequence-master>
but it also didnât work out and the issue still persists. Please help me out. if you have any inputs.
|