[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO - Region-Body overflowing into Region-After

Subject: Re: XSL-FO - Region-Body overflowing into Region-After
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 31 Jul 2005 17:23:14 -0400
fo region body margin top
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@xxxxxxxxxxxxxxxxxxxx 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.