Thanks Pascal, that did the trick. Here are my new <page-sequence>s
<fo:page-sequence master-reference="pageSequence_TOC" format="i" initial-page-number="auto-odd" force-page-count="end-on-odd">...</> <fo:page-sequence master-reference="pageSequence_Section" format="1" initial-page-number="1" force-page-count="end-on-odd">...</> I would have never been able to figure that out without help. For me at least there seems to be a disconnect between the name of the attribute and what it is meant to do. I look at initial-page-number and think only a number is a valid value. It's nice when FOP informs me when I have an illegal value used in an attribute or even a misspelling of an attribute but at the moment it doesn't seem to validate the FO. That is probably just an option I need to turn on. If not, I'm adding a step in my ANT task to validate my FO output so I can see where I have made an error as to its structure, especially placement of attributes. Once again thanks Pascal. Your help is greatly appreciated. Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -----Original Message----- From: Pascal Sancho [mailto:[email protected]] Sent: Friday, March 12, 2010 7:05 AM To: [email protected] Subject: Re: page sequence question Hi Mario, The force-page-count property applies only to fo:page-sequence. You can get whant you want by using the property initial-page-number on your fo:page-sequence objects. Note you may need a blank page in your alternative sets id FOP has to insert some extra blank pages, I.E. between TOP and Content sections. Pascal Mario Madunic a écrit : > (Using FOP.95) > > I'm having trouble setting up the following page sequence between two > sections. > Section TOC > Starts odd > Ends odd > If TOC is only on one page no even page (start content on this page) > > Section Content > Starts even > Ends odd > > I've tried different things such as @break-before, @break-after, and > @force-page-count. Whenever the TOC only has enough content for a single > page, it creates an even page, which I do not want. Only to create an even > page if there is enough content to flow onto a second page. This would also > be the case if there are 3 or 5 pages also. > > Here are the page-sequence-masters I'm using > > <fo:page-sequence-master master-name="pageSequence_TOC" > force-page-count="end-on-odd"> > <fo:repeatable-page-master-alternatives> > <fo:conditional-page-master-reference odd-or-even="odd" > master-reference="oddPage_TOC" /> > <fo:conditional-page-master-reference odd-or-even="even" > master-reference="evenPage_TOC" /> > </fo:repeatable-page-master-alternatives> > </fo:page-sequence-master> > > <fo:page-sequence-master master-name="pageSequence_Section" > force-page-count="end-on-odd"> > <fo:repeatable-page-master-alternatives> > <fo:conditional-page-master-reference odd-or-even="odd" > master-reference="oddPage_Section" /> > <fo:conditional-page-master-reference odd-or-even="even" > master-reference="evenPage_Section" /> > </fo:repeatable-page-master-alternatives> > </fo:page-sequence-master> > > Any help appreciated. > > Marijan (Mario) Madunic > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
