Re: [xep-support] How to prevent region-body from going into region-after

From: G. Ken Holman <>
Date: Fri Apr 29 2005 - 05:47:06 PDT

At 2005-04-29 11:03 +0000, viking wrote:
>This happens on some of the input xml files the generated PDF files have
>the bottom of the body overlapping the region-after

The stylesheet writer is responsible for avoiding the overwrite of regions.

In some applications (like my UBL stylesheets), it is advantageous to
employ this overwrite ability.

>How can control the margins in the
>page, region-before, region-body and region-after.

You set them yourself.

Check page 73 of the freely downloadable excerpt of our XSL-FO book; follow
the link in my trailer below to the "Books & free excerpts" link on our
home page.

>Current Settings
> margin-right=".1cm"
> margin-left=".1cm"
> margin-bottom=".7cm"
> margin-top=".1cm"
>What does region-body
>Margin="1.5cm 1.5cm .1cm .1cm"/>

Looking at page 73 you'll see how the body margins "push in" the body
within the page margins.

>What does region-before
>padding="0in 0m4in 1pt"

The extent is how far the perimeter region extends from the page margins
into the body region ... without sufficient room, you will get overwrite.

The page margins constrain everything, the body margins constrain the body
region within the page margins, the perimeter extents constrain the size of
the perimeter as it reaches in towards the body.

>What does region-after
>padding="0in 0m4in 1pt"

Same thing.

Note, however, that the XSL-FO 1.0 spec ignores padding for perimeter
region ... only the use of the extent= is defined in the spec.

I hope this helps.

. . . . . . Ken

World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman       
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness
Legal business disclaimers:
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Fri Apr 29 06:30:50 2005

This archive was generated by hypermail 2.1.8 : Fri Apr 29 2005 - 06:30:51 PDT