At 2005-07-31 20:16 +0000, craig webber wrote:
The content in my Region-Body is "overflowing" over or into the
Region-Afteron, where the page numbers are. Can anybody see what I'm doing
wrong? Code below, thanks Craig.
<fo:simple-page-master master-name="body"
page-height="29.7cm"
page-width="21cm"
margin-top="1.5cm"
margin-bottom="1.5cm"
margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="2cm"/>
You need margins on your body region to limit its extent from occupying the
same space on the page as the extents of your perimeter regions. I'm
guessing from your not having specified a margin-bottom that your use of
margin-top above is to separate your content of your page 2cm from the
content of your header. You need 3cm for your header and 2cm for the above
(if I've guessed correctly), and you need a bottom margin of at least 1cm
to miss the after region:
<fo:region-body margin-top="5cm" margin-bottom="1cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
XSL-FO does not implicitly shrink the body region to make room for the
extents of perimeter regions. In fact, that they overlap is a critically
important aspect of the UBL stylesheets that I've made available free on my
web site: I draw the form borders as a full-page-sized region-before, and
then overlay the form content in the region-body on top of the drawn
form. This gives me the ability to implement continuation pages with a
single flow, and is *not* a typical use of perimeter regions, so I'm not
mentioning this as a recommended approach, only that the design given to us
for XSL-FO accommodates what I need to do.
I hope this helps.
. . . . . . . . Ken
--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--