Hi There!
I'm currently working on an XSL for a PDF which has a fixed second page.
The structure is the following:
First page: - Special header and start of table (table goes over more pages)
Second page: - Static content (an image for example)
Rest: - The rest of the table.
My problem is that the table always goes also into the second page, or on every
odd page only.
I used:
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
page-position="first" master-reference="first"/>
<fo:conditional-page-master-reference
page-position="rest" master-reference="rest"/>
<!--fo:conditional-page-master-reference
odd-or-even="even" master-reference="odd"/>
<fo:conditional-page-master-reference odd-or-even="odd"
master-reference="even--"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
but I only need a special handling on the SECOND page...
Anybody had the same problem, or any idea that could help?
I also tried to use a master-reference to another page-sequence-master with
again first and rest but this resulted in NPE:
java.lang.NullPointerException
at org.xml.sax.helpers.LocatorImpl.<init>(LocatorImpl.java:79)
at
org.apache.fop.fo.pagination.PageProductionException.setLocator(PageProductionException.java:56)
Shouldn't this work?
Any help is really welcome!
Adam
Using Fop Trunk