[Home] [By Thread] [By Date] [Recent Entries]
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 93XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



