Re: odd-or-even AND page-position in fo:conditional-page-master-reference
Thank you all for your help. I have an unknown number of page sequences which all needed to start with Page 1 so I did the following:I added the blank-or-not-blank to the conditional-page-master-reference and also set the force-page-count=end-on-even on my page-sequences. That did the trick. Now, it will print my new page-seq on the front of 2-sided pages. If the previous sequence ends on an odd number, it will force the additional page (which will tell the conditional will to print out the Report_Blank_###).fo:page-sequence-master xsl:attribute name=master-nameReport_Layout_xsl:value-of select=$report_number //xsl:attribute fo:repeatable-page-master-alternativesfo:conditional-page-master-reference page-position=first blank-or-not-blank=not-blank xsl:attribute name=master-nameReport_FirstPage_xsl:value-of select=$report_number //xsl:attribute/fo:conditional-page-master-reference fo:conditional-page-master-reference blank-or-not-blank=blank xsl:attribute name=master-nameReport_Blank_xsl:value-of select=$report_number //xsl:attribute/fo:conditional-page-master-referencefo:conditional-page-master-reference page-position=rest xsl:attribute name=master-nameReport_OtherPages_xsl:value-of select=$report_number //xsl:attribute/fo:conditional-page-master-reference /fo:repeatable-page-master-alternatives/fo:page-sequence-masterGlen Mazza [EMAIL PROTECTED]10/28/2005 02:35 PM ASTPlease respond [EMAIL PROTECTED] To fop-users@xmlgraphics.apache.org cc bcc Subject Re: odd-or-even AND page-position in fo:conditional-page-master-reference I think all you need is to set initial-page-number to even on thefo:page-sequence:http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#initial-page-numberand just use a simple fo:single-page-master-reference instead of fo:c-p-m-r.GlenDaniel Brown wrote: Shouldn't it be possible to use both the odd-or-even AND the page-position within the fo:conditional-page-master-reference? I'm finding (0.20.5) that one or the other works but not both. In the case of both being entered, it simply takes the first defined. What I'm trying to do it insert a page sequence which will add a blank page before a page which is EVEN numbered. I need to have all my new page-sequence start with an ODD page number so that when printed on 2-sided paper they will always appear on the front of a sheet of paper. any ideas?? Regards, Daniel- 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]
Re: odd-or-even AND page-position in fo:conditional-page-master-reference
Daniel Brown wrote: Thank you all for your help. I have an unknown number of page sequences which all needed to start with Page 1 so I did the following: I added the blank-or-not-blank to the conditional-page-master-reference and also set the force-page-count=end-on-even on my page-sequences. That did the trick. Now, it will print my new page-seq on the front of 2-sided pages. If the previous sequence ends on an odd number, it will force the additional page (which will tell the conditional will to print out the Report_Blank_###). I guess I'm missing something here. Since you want each page to start on 1, and also to start on the front of the page, it seems like you can just set initial-page-number to 1 and force-page-count=end-on-even for each fo:page-sequence without all the fo:c-p-m-r's you have below. Glen fo:page-sequence-master xsl:attribute name=master-nameReport_Layout_xsl:value-of select=$report_number //xsl:attribute fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position=first blank-or-not-blank=not-blank xsl:attribute name=master-nameReport_FirstPage_xsl:value-of select=$report_number //xsl:attribute /fo:conditional-page-master-reference fo:conditional-page-master-reference blank-or-not-blank=blank xsl:attribute name=master-nameReport_Blank_xsl:value-of select=$report_number //xsl:attribute /fo:conditional-page-master-reference fo:conditional-page-master-reference page-position=rest xsl:attribute name=master-nameReport_OtherPages_xsl:value-of select=$report_number //xsl:attribute /fo:conditional-page-master-reference /fo:repeatable-page-master-alternatives /fo:page-sequence-master *Glen Mazza [EMAIL PROTECTED]* 10/28/2005 02:35 PM ASTPlease respond [EMAIL PROTECTED] To fop-users@xmlgraphics.apache.org cc bcc Subject Re: odd-or-even AND page-position in fo:conditional-page-master-reference I think all you need is to set initial-page-number to even on the fo:page-sequence: http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#initial-page-number and just use a simple fo:single-page-master-reference instead of fo:c-p-m-r. Glen Daniel Brown wrote: Shouldn't it be possible to use both the odd-or-even AND the page-position within the fo:conditional-page-master-reference? I'm finding (0.20.5) that one or the other works but not both. In the case of both being entered, it simply takes the first defined. What I'm trying to do it insert a page sequence which will add a blank page before a page which is EVEN numbered. I need to have all my new page-sequence start with an ODD page number so that when printed on 2-sided paper they will always appear on the front of a sheet of paper. any ideas?? Regards, Daniel- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]