Bug 7140 - page-position attribute set to "last" on conditional-page-master-refernce does not work
Summary: page-position attribute set to "last" on conditional-page-master-refernce doe...
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
URL: http://wiki.apache.org/xmlgraphics-fo...
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-15 00:56 UTC by Matthew Grippo
Modified: 2012-04-01 06:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Grippo 2002-03-15 00:56:57 UTC
When I try to use the page-seqence-master called "sequence1" as follows the 
resulting output does not contain a "master1" layout as a final page:

<fo:layout-master-set>
  <fo:simple-page-master page-width="8.5in" 
                         page-height="11in" 
                         master-name="master1">
    <fo:region-body/>
  </fo:simple-page-master>
  <fo:simple-page-master page-width="8.5in" 
                         page-height="1in" 
                         master-name="number">
    <fo:region-body/>
  </fo:simple-page-master>
  <fo:page-sequence-master master-name="sequence1">
    <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference master-reference="master1" 
                                            page-position="last"/>
      <fo:conditional-page-master-reference master-reference="master1" 
                                            page-position="first"/>
      <fo:conditional-page-master-reference master-reference="master2"
                                            page-position="rest"/>
    </fo:repeatable-page-master-alternatives>
  </fo:page-sequence-master>
</fo:layout-master-set>
Comment 1 Matthew Petty 2003-04-17 00:47:24 UTC
i have confirmed this with 0.20.4 as have others on yahoos xsl-fo group
im sure this is a well known issue, but im wondering if there any plans to
implement this.  forgive me if the answer is on fop's site already
Comment 2 Jeremias Maerki 2003-04-17 06:04:02 UTC
This will also stay the same in 0.20.5. page-position="last" will be 
implemented as part of the redesign effort in FOP. Because of that we can't 
give you any date when it will be available. Help is welcome but it's not an 
easy thing to implement.
Comment 3 Jeremias Maerki 2006-03-23 14:55:36 UTC
Initial support for page-position="last" has just been added to FOP Trunk.
Feedback is welcome.

At the moment, the last page has to have the same properties (width of
region-body, number of columns, column gap) as the second-to-last page, but the
same applies to page n and page n-1 anyway in the new code (it's the problem we
call "changing available IPD"). But you can freely choose the height of the
region-body (BPD).

More information: http://wiki.apache.org/xmlgraphics-fop/PagePositionLast
Comment 4 Jeremias Maerki 2006-04-10 10:16:00 UTC
More tests show that the feature seems to work.
Comment 5 Glenn Adams 2012-04-01 06:44:24 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed