[
https://issues.apache.org/jira/browse/FOP-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Szeak updated FOP-2227:
-----------------------
Description:
By W3C standards, the region-before and region-after default must be
horizontally fill out the width of the page between page left and right
margins. Region-start and region-end must be vertically fill out the height of
the page between region-before and region-after.
FOP renders these regions as follows:
region-start and region-end fill out vertically the page height between page
top and bottom margins,
region-before and region-end fill out horizontally the space between
region-start and region-end.
Steps to Reproduce:
Render to any output format the attached fo:
The original W3C standard image from the regions:
http://www.w3.org/TR/xsl/#fo_simple-page-master
Reference from w3schools: http://www.w3schools.com/xslfo/xslfo_pages.asp
was:
By W3C standards, the region-before and region-after default must be
horizontally fill out the width of the page between page left and right
margins. Region-start and region-end must be vertically fill out the height of
the page between region-before and region-after.
FOP renders these regions as follows:
region-start and region-end fill out vertically the page height between page
top and bottom margins,
region-before and region-end fill out horizontally the space between
region-start and region-end.
Steps to Reproduce:
Render to any output format the following fo:
<?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 master-name="test" page-width="210mm"
page-height="297mm">
<fo:region-body margin-top="2cm" margin-left="2cm"
margin-right="2cm" margin-bottom="1cm"/>
<fo:region-before region-name="header" extent="2cm"/>
<fo:region-after region-name="footer" extent="1cm"/>
<fo:region-start region-name="start" extent="2cm"/>
<fo:region-end region-name="end" extent="2cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test">
<fo:static-content flow-name="header">
<fo:block-container position="absolute"
border-style="solid" border-width="1pt" left="0mm" top="0mm" right="0mm"
bottom="0mm">
<fo:block>HEADER</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="footer">
<fo:block-container position="absolute"
border-style="solid" border-width="1pt" left="0mm" top="0mm" right="0mm"
bottom="0mm">
<fo:block>FOOTER</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="start">
<fo:block-container position="absolute"
border-style="solid" border-width="1pt" left="0mm" top="0mm" right="0mm"
bottom="0mm">
<fo:block>START</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="end">
<fo:block-container position="absolute"
border-style="solid" border-width="1pt" left="0mm" top="0mm" right="0mm"
bottom="0mm">
<fo:block>END</fo:block>
</fo:block-container>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute"
border-style="solid" border-width="1pt" left="0mm" top="0mm" right="0mm"
bottom="0mm">
<fo:block>BODY</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
The original W3C standard image from the regions:
http://www.w3.org/TR/xsl/#fo_simple-page-master
Reference from w3schools: http://www.w3schools.com/xslfo/xslfo_pages.asp
Summary: Rendering of before, after, start, end regions does not
conform with W3C standards (was: Rendering of before, after, start, end
regions does not confomr with W3C standards)
> Rendering of before, after, start, end regions does not conform with W3C
> standards
> ----------------------------------------------------------------------------------
>
> Key: FOP-2227
> URL: https://issues.apache.org/jira/browse/FOP-2227
> Project: Fop
> Issue Type: Bug
> Components: page-master/layout
> Affects Versions: 1.1
> Environment: Windows 7 64bit Professional HUN
> running on Oralce Virtualbox 4.2.10 r84104
> running on 64bit Ubuntu 12.04 LTS Host machine
> Reporter: Szeak
> Attachments: region-test.fo
>
>
> By W3C standards, the region-before and region-after default must be
> horizontally fill out the width of the page between page left and right
> margins. Region-start and region-end must be vertically fill out the height
> of the page between region-before and region-after.
> FOP renders these regions as follows:
> region-start and region-end fill out vertically the page height between page
> top and bottom margins,
> region-before and region-end fill out horizontally the space between
> region-start and region-end.
> Steps to Reproduce:
> Render to any output format the attached fo:
> The original W3C standard image from the regions:
> http://www.w3.org/TR/xsl/#fo_simple-page-master
> Reference from w3schools: http://www.w3schools.com/xslfo/xslfo_pages.asp
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira