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 Brian Trezise <br...@intellidata.net> on 2010/05/11 17:59:20 UTC

Problem with page masters

Ok, so I'm using the following xsl-fo to define my pages:

                                    <fo:layout-master-set>

                                                <fo:simple-page-master
master-name="A4-portrait"

 
page-height="11in" page-width="8.5in" margin="2cm">

                                                            <fo:region-body
/>

 
<fo:region-before />

                                                            <fo:region-after
/>

                                                </fo:simple-page-master>

                                                <page-sequence-master
master-name="TOC" >

 
<fo:repeatable-page-master-reference master-reference="A4-portrait"
maximum-repeats="0" />

                                                </page-sequence-master>

                                    </fo:layout-master-set>

 

>From what I can find in the xsl-fo spec, that should work.  However, I'm
getting the following exception when I try to run the transformation:

 

(Location of error unknown)org.apache.fop.fo.ValidationException:
Error(Unknown location): fo:repeatable-page-master-reference is not a valid
child element of page-sequence-master.

 

Am I doing something wrong or is this a bug?  The FOP compliance table lists
these tags as supported?

Thanks,

-----------------------------

Brian Trezise

IntelliData, Inc.

Staff Software Engineer

brian.trezise@intellidata.net

t: 720.524.4864

m: 303.809.9782

 


RE: Problem with page masters

Posted by "Amick, Eric" <Er...@mail.house.gov>.
That should be fo:page-sequence-master.

 

Eric Amick   Systems Engineer II

Legislative Computer Systems

 

From: Brian Trezise [mailto:brian.trezise@intellidata.net] 
Sent: Tuesday, May 11, 2010 11:59
To: fop-users@xmlgraphics.apache.org
Subject: Problem with page masters

 

Ok, so I'm using the following xsl-fo to define my pages:

                                    <fo:layout-master-set>

                                                <fo:simple-page-master
master-name="A4-portrait"

 
page-height="11in" page-width="8.5in" margin="2cm">

 
<fo:region-body />

 
<fo:region-before />

 
<fo:region-after />

                                                </fo:simple-page-master>

                                                <page-sequence-master
master-name="TOC" >

 
<fo:repeatable-page-master-reference master-reference="A4-portrait"
maximum-repeats="0" />

                                                </page-sequence-master>

                                    </fo:layout-master-set>

 

>From what I can find in the xsl-fo spec, that should work.  However, I'm
getting the following exception when I try to run the transformation:

 

(Location of error unknown)org.apache.fop.fo.ValidationException:
Error(Unknown location): fo:repeatable-page-master-reference is not a
valid child element of page-sequence-master.

 

Am I doing something wrong or is this a bug?  The FOP compliance table
lists these tags as supported?

Thanks,

-----------------------------

Brian Trezise

IntelliData, Inc.

Staff Software Engineer

brian.trezise@intellidata.net

t: 720.524.4864

m: 303.809.9782