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.
Created attachment 29527 [details] Fo file
Created attachment 29528 [details] pdf
Created attachment 29529 [details] Last page fo file
Created attachment 29530 [details] Last page pdf file