Hi, Thank you for your reply and sorry for the misstyprd subject.
I will try to arrange them in the right order but i do not think it will help me the way i want. I want the following conditions: first page (odd,first) = "framsida-first" second page (even,rest ??) = "baksida" rest odd pages (odd,rest) = "framsida-helkropp" rest even pages (even,rest) = "baksida-helkropp" But the second page and rest of the even pages are the same conditions, i want to find out if there is anyway to have a condition for the second page. best regards Johan -----Ursprungligt meddelande----- Från: Adrian Cumiskey [mailto:[EMAIL PROTECTED] Skickat: den 28 juni 2007 15:59 Till: [email protected] Ämne: Re: SV: Font Arial is not displayed on Linux Hi Johan, Sounds like you have an ordering problem. Each conditional-page-master is evaluated in turn as each page is processed in the page sequence so you should generally order them page-position="first", followed by page-position="rest" and finally page-position="last". If I understand you correctly I believe you are looking for the following page master selection behaviour :- ----- <fo:page-sequence-master master-name="faktura"> <!-- used for page 1 in sequence --> <fo:single-page-master-reference master-reference="framsida-first"/> <!-- used for page 2 in sequence --> <fo:single-page-master-reference master-reference="baksida"/> <!-- repeatedly evaluated and conditionally selected --> <!-- for all other pages in the sequence --> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference page-position="rest" odd-or-even="odd" master-reference="framsida-helkropp"/> <fo:conditional-page-master-reference page-position="rest" odd-or-even="even" blank-or-not-blank="not-blank" master-reference="baksida-hellkropp"/> <fo:conditional-page-master-reference page-position="rest" odd-or-even="even" blank-or-not-blank="blank" master-reference="baksida-blank"/> <fo:conditional-page-master-reference page-position="last" odd-or-even="even" blank-or-not-blank="not-blank" master-reference="baksida-last"/> <fo:conditional-page-master-reference page-position="last" odd-or-even="odd" master-reference="framsida"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> ----- Hope this helps! :-) Adrian. Johan Johansson wrote: > Hi > > I have a problem, is there anyway with xsl:fo to set different > master-reference if i want for an example the page 2 to be different from the > rest of the even pages? > > I want the even page 2 to be "baksida" and the rest even pages to be > "baksida-helkropp". > > Do anyone have any idea how to do that? > > <fo:page-sequence-master master-name="faktura"> > > <fo:conditional-page-master-reference page-position="first" odd-or-even="odd" > master-reference="framsida-first"/> > <fo:conditional-page-master-reference page-position="rest" odd-or-even="odd" > master-reference="framsida-helkropp"/> > <fo:conditional-page-master-reference page-position="rest" odd-or-even="even" > blank-or-not-blank="not-blank" master-reference="baksida"/> > <fo:conditional-page-master-reference page-position="last" odd-or-even="even" > blank-or-not-blank="not-blank" master-reference="baksida-last"/> > <fo:conditional-page-master-reference page-position="last" odd-or-even="odd" > master-reference="framsida"/> > <fo:conditional-page-master-reference page-position="rest" odd-or-even="even" > blank-or-not-blank="blank" master-reference="baksida-blank"/> > </fo:page-sequence-master> > > //Johan > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
