Mario, FOP does validate XSL-FO when strict validation is turned on: see strict-validation parameter at [1]. If this is not the case for the force-page-count property, that should be considered as a FOP issue. If this the case, you may fill in a bug with a short attached XSL-FO testcase.
[1] http://xmlgraphics.apache.org/fop/0.95/configuration.html#general-elements Pascal Mario Madunic a écrit : > 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 > > > -----Original Message----- > From: Pascal Sancho [mailto:[email protected]] > > 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]
