You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Josh <jo...@zype.co.nz> on 2002/04/24 05:53:33 UTC
FOP 0.20.3 - master reference issue
Hi all
I've updated my version of FOP to 0.20.3 (from Fop 0.20.1) and
immediately got an issue with an existing .fo which was working nicely
for a while there.
The error I'm getting when kicking FOP into gear is:
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[ERROR]: 'master-reference' for 'fo:page-sequence' matches no
'simple-page-master' or 'page-sequence-master'
I take this to mean that either a reference name in my .fo is wrong or
missing but the relevant bit of the .fo looks like this:
<?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="main" margin-right="1cm"
margin-left="1cm" margin-bottom="1.5cm" margin-top="1cm"
page-width="21cm" page-height="29.7cm">
<fo:region-before extent="3cm"/>
<fo:region-after extent="2.5cm"/>
<fo:region-body margin-top="4cm" margin-bottom="3.5cm"
margin-left="0cm" margin-right="0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="main">
<fo:static-content flow-name="xsl-region-before">
<fo:table>....
Am I missing something obvious here or has FOP changed the way it works
in some subtle way?
Thanks
Josh
ZYPE - Graphical Interface Design
Phone: 03 963 3735
Mobile: 021 400 472
Web: www.zype.co.nz
Re: FOP 0.20.3 - master reference issue
Posted by "Peter B. West" <pb...@powerup.com.au>.
Josh,
There was a change in the spec. Page-masters (like simple-page-master)
have a master-name. Things that refer to page-masters (like
page-sequence) now have a master-reference instead of a master-name. You
will have to change your fo:s and whatever is generating them to conform.
Peter
Josh wrote:
> [ERROR]: 'master-reference' for 'fo:page-sequence' matches no
> 'simple-page-master' or 'page-sequence-master'
...
> <fo:layout-master-set>
> <fo:simple-page-master master-name="main" margin-right="1cm"
> margin-left="1cm" margin-bottom="1.5cm" margin-top="1cm"
> page-width="21cm" page-height="29.7cm">
...
> </fo:layout-master-set>
> <fo:page-sequence master-name="main">
>