[ https://issues.apache.org/jira/browse/FOP-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Hennebert resolved FOP-2148. ------------------------------------ Resolution: Fixed Fix Version/s: trunk Thanks for your bug report. Support for page-position="only" had actually been left unfinished. The issue has been resolved in rev. 1444217: http://svn.apache.org/r1444217 > page-position="only" in conditional-page-master-reference does not work > ----------------------------------------------------------------------- > > Key: FOP-2148 > URL: https://issues.apache.org/jira/browse/FOP-2148 > Project: Fop > Issue Type: Bug > Components: page-master/layout > Affects Versions: trunk > Environment: Operating System: > Platform: PC > Reporter: ffimbel > Fix For: trunk > > Attachments: lastpage.fo, lastpage.fo.pdf, onlypage.fo, > onlypage.fo.pdf > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira