Mike, There is something about that in list archives (see [1]). Jeremias wrote that the right solution should be page-position="only" (XSL-FO 1.1 spec), witch is not yet implemented in FOP. Playing with fo:marker should be a workaround.
Pascal [1] http://marc.theaimsgroup.com/?l=fop-user&m=115700779613800&w=2 > -----Original Message----- > From: mikevn123 [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 18, 2006 2:14 PM > To: fop-users@xmlgraphics.apache.org > Subject: RE: One Page DOcument > > > > I have a similar problem as to the one posted before. > > > > I've setup two page masters, one to be used for page-position="any" > > and another to be used for page-position="last". > > > > When my document is rendered, and it is two or more pages, it works > > great. > > When my document is rendered and it is only one page, it uses the > > "any" > > page-master. > > > > Since there is no "first" defined, I was hoping that the > "last" would > > apply to page 1. > > > > I am using FOP 0.92beta. > > > > Is there a way to have a single page document take on the > attributes > > of the "last" page? > > > > Thanks. > > Hi, > 1. Can you send a short XSL-FO that demonstrate that? > 2. I guess you use a fo:repeatable-page-master-alternatives. > you can try to change the fo:conditional-page-master-reference order. > > > You guessed right, I am using > fo:repeatable-page-master-alternative and > fo:conditional-page-master-reference. > > <fo:layout-master-set> > <fo:simple-page-master master-name="default-page" > page-height="11in" > page-width="8.50in" > margin-top="0.25in" > margin-left="0.25in" > margin-right="0.25in" > margin-bottom="0.25in"> > <!-- space needed for header & footer tables --> > <fo:region-body > region-name="body" > margin-top="0in" > margin-bottom="1.50in"/> > <fo:region-before region-name="header" extent="10.0in"/> > <!-- space needed for header table --> > <fo:region-after region-name="footer" extent="1.50in"/> > <!-- space needed for footer table --> > <fo:region-start extent="0.00in"/> > <fo:region-end extent="0.00in"/> > </fo:simple-page-master> > > > <fo:simple-page-master master-name="last-page" > page-height="11in" > page-width="8.50in" > margin-top="0.25in" > margin-left="0.25in" > margin-right="0.25in" > margin-bottom="0.25in"> > <!-- space needed for header & footer tables --> > <fo:region-body > region-name="body" > margin-top="0in" > margin-bottom="1.50in"/> > <fo:region-before region-name="header" extent="10.0in"/> > <!-- space needed for header table --> > <fo:region-after region-name="last-footer" > extent="1.50in"/> <!-- space needed for footer table --> > <fo:region-start extent="0.00in"/> > <fo:region-end extent="0.00in"/> > </fo:simple-page-master> > > > <fo:page-sequence-master master-name="all"> > <fo:repeatable-page-master-alternatives> > > <fo:conditional-page-master-reference > page-position="last" master-reference="last-page"/> > > <fo:conditional-page-master-reference > page-position="any" master-reference="default-page" /> > > </fo:repeatable-page-master-alternatives> > </fo:page-sequence-master> > </fo:layout-master-set> > > As I said, it works for 2+ pages, but not for one. > > Tell me if you want more code. > > Thanks. > > -Mike > -- > View this message in context: > http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6874870 > Sent from the FOP - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]