Bug 54074 - page-position="only" in conditional-page-master-reference does not work
Summary: page-position="only" in conditional-page-master-reference does not work
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-30 10:31 UTC by ffimbel
Modified: 2012-10-30 10:32 UTC (History)
0 users



Attachments
Fo file (1.92 KB, application/octet-stream)
2012-10-30 10:31 UTC, ffimbel
Details
pdf (5.15 KB, application/pdf)
2012-10-30 10:31 UTC, ffimbel
Details
Last page fo file (1.92 KB, application/octet-stream)
2012-10-30 10:32 UTC, ffimbel
Details
Last page pdf file (5.20 KB, application/pdf)
2012-10-30 10:32 UTC, ffimbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ffimbel 2012-10-30 10:31:01 UTC
Using the attribute page-position="only" in a  conditional-page-master-reference in order to produce a different page header if the document has only one page does not work.
I get the header for multiple page even if I only have one page in the final output document.

<fo:page-sequence-master master-name="Section_1">      
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-reference="Single" page-position="only" />
        <fo:conditional-page-master-reference master-reference="Multiple"  />
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>


If I change the attribute to last, it works fine.
 <fo:page-sequence-master master-name="Section_1">      
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-reference="Single" page-position="last" />
        <fo:conditional-page-master-reference master-reference="Multiple"  />
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>


I attached fo and pdf to reproduce the issue.
Comment 1 ffimbel 2012-10-30 10:31:35 UTC
Created attachment 29527 [details]
Fo file
Comment 2 ffimbel 2012-10-30 10:31:51 UTC
Created attachment 29528 [details]
pdf
Comment 3 ffimbel 2012-10-30 10:32:22 UTC
Created attachment 29529 [details]
Last page fo file
Comment 4 ffimbel 2012-10-30 10:32:41 UTC
Created attachment 29530 [details]
Last page pdf file