If I set the writing mode on a page master to "rl" (arabic/hebrew) and
than define margin-left and right on the region body where are these
margins suppose to appear on the output device, i.e. would margin-left
still be on the left side of the paper and margin-right on the right
side?
A sample fo is further below. My problem is that on the generated PDF
the margin-left is on the right and vice versa. And I am not sure if
that is correct.
Manuel
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/2000/svg">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal" page-width="3in"
page-height="5in" margin="18pt" writing-mode="rl">
<fo:region-body margin-top="18pt" margin-bottom="12pt"
margin-left="15pt" margin-right="36pt" background-color="yellow" />
<fo:region-before extent="18pt" background-color="blue"
precedence="true" />
<fo:region-after extent="12pt" background-color="green"
precedence="true" />
<fo:region-start extent="36pt" background-color="red" />
<fo:region-end extent="15pt" background-color="orange" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="normal"
white-space-collapse="true">
<fo:static-content flow-name="xsl-region-before">
<fo:block>
r e g i o n b e f o r e
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block>
r e g i o n a f t e r
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block>
r e g i o n s t a r t
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block>
r e g i o n e n d
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
Demonstrates an 18pt margin on the page master.
The page size is 5in x 3in. On the region body we have:
margin-top="18pt" margin-bottom="12pt" margin-left="15pt"
margin-right="36pt".
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>