You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Imran Khan <im...@daffodildb.com> on 2006/12/12 05:16:48 UTC
FOP 0.90.0 problem
Hi
I have one problem related to FOP 0.90.0.
I am getting an excepton :org.apache.fop.fo.ValidationException:
Error(Unknown location): For fo:simple-page-master, only one fo:region-body
may be declared.
while the same xsl runs fine on FOP 0.20.5
the xsl has layout as
<fo:layout-master-set>
<fo:simple-page-master
master-name="all-pages"
page-height="11in" page-width="8.5in"
margin-top="0.5in" margin-bottom="0.5in"
margin-left="0.5in" margin-right="0.5in" border="1 pt solid
black">
<fo:region-body region-name="Content" margin-top="0.7in"
margin-bottom="2in" margin-right="0.1in"
margin-left="0.1in"
padding="6pt"
/>
<fo:region-before region-name="Header" extent="0.5in"
margin-right="0.1in" padding="6pt"
display-align="after" />
<fo:region-after region-name="Footer" extent="2in" padding="6pt"
display-align="before" precedence="true"
/>
<fo:region-start region-name="LeftSide" extent="0.1in"
padding="2pt"
display-align="after"
reference-orientation="90"
/>
<fo:region-end region-name="RightSide" extent="0.1in"
padding="2pt"
display-align="after"
reference-orientation="-90"/>
</fo:simple-page-master>
<fo:simple-page-master
master-name="first-page"
page-height="11in" page-width="8.5in"
margin-top="0.5in" margin-bottom="0.5in"
margin-left="0.5in" margin-right="0.5in"
border-top-style="solid" border-top-color="black" border-top-width="1pt">
<fo:region-body region-name="Content" border-top="black dashed
thick" />
</fo:simple-page-master>
<fo:page-sequence-master master-name="default-sequence">
<fo:repeatable-page-master-reference
master-reference="all-pages" />
</fo:page-sequence-master>
</fo:layout-master-set>
could you tell me where is the problem .?
Thanks & Regards
Imran Khan
Re: FOP 0.90.0 problem
Posted by Chris Bowditch <bo...@hotmail.com>.
Imran Khan wrote:
> Hi
>
> I have one problem related to FOP 0.90.0.
FOP 0.90alpha is an older release. 0.92beta has a lot of bugs fixed. I
have tested your XSL-FO on the latest code from SVN and it works.
Although I had to remove the borders and padding from the fo:regions as
it is not allowed there.
BTW, this is the wrong list to ask questions about fop. This list is for
discussing FOP's development. Please subscribe to the fop-user list.
Thanks!
Chris
<snip/>