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

block-container, with position="absolute"

Subject: block-container, with position="absolute"
From: Philippe Drix <pdrix@xxxxxxxxxxxx>
Date: Tue, 14 Jan 2003 17:19:43 +0100
fo block container position absolute
Hi,

I have a problem of with block-container, with position="absolute".

I have tried the following code with XEP and FOP, which don't produce the same result.

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>

    <fo:simple-page-master
        margin-right="2.499cm"
        margin-left="1.101cm"
        margin-bottom="4.001cm"
        margin-top="0.64cm"
        page-width="21cm"
        page-height="29.7cm"

master-name="first">

    <fo:region-before   extent="29.7cm - 0.64cm - 4.001cm"/>
    <fo:region-body margin-top="12.3cm" margin-bottom="3.101cm" />
    <fo:region-after extent="3cm"/>

    </fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence   master-reference="first">
    <fo:static-content flow-name="xsl-region-before">

<fo:block-container
height="25.5cm" width="17.576cm" top="0cm" left="0cm" position="absolute"
border-color="red" border-width="0.011cm" border-style="solid"
>
<fo:block font-family="sans-serif" font-size="8pt" >foo</fo:block>
</fo:block-container>


</fo:static-content>



    <fo:flow flow-name="xsl-region-body">
        <fo:block font-family="sans-serif" font-size="8pt" >bla bla</fo:block>
    </fo:flow>

</fo:page-sequence>
</fo:root>

Both XEP and FOP draw the red rectangle.
With XEP its left and top edges are placed on the left and top edges of the paper sheet (page viewport area), while with FOP they are placed on the left and top edges of the page reference area (ie the page minus the page margins).


I think the result produced by FOP is correct with respect to the XSL-FO Recommandation, but I am not sure, and I would be pleased if somebody could give his opinion.

Regards -- Ph D

==
Philippe Drix
     ___________
__| OBJECTIVA |___________________
http://www.objectiva.fr
21-23, rue Aristide Briand - 92170 Vanves
tel : +33 1 47 36 60 30
fax : +33 1 47 36 61 93



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.