[xep-support] Extent of start and end regions

From: W. Eliot Kimber (eliot@isogen.com)
Date: Thu Oct 31 2002 - 12:29:26 PST


Given this document (note value of "precedence=" attribute on
region-before):

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
     font-family="sans-serif"
     font-size="12pt"
>
   <fo:layout-master-set>
     <fo:simple-page-master master-name="mypage"
         page-height="11in"
         page-width="8.5in">
       <fo:region-body/>
       <fo:region-before
           precedence="true"
           background-color="red"
           extent="1in"/>
       <fo:region-after
           background-color="green"
           extent="1in"/>
       <fo:region-start
           background-color="blue"
           extent="1in"/>
       <fo:region-end
            background-color="yellow"
          extent="1in"/>
     </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="mypage">
     <fo:flow flow-name="xsl-region-body"
>
       <fo:block
><fo:inline
>Precedence on region-before is 'true'</fo:inline
></fo:block>
     </fo:flow>
   </fo:page-sequence>
</fo:root>

XEP correctly makes the before region before the full page width. If you
switch precedence to "false" (the default), the before region is
correctly limited to the space allowed by the extents of the start and
end regions *but* the start and end regions are not then extended to
page's before edge as required. That is, when you format the document
with precedence set to false, you get a white square in each corner
where the start and end regions should be.

Cheers,

E.

-- 
W. Eliot Kimber, eliot@isogen.com
Consultant, ISOGEN International
1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST