Daniel Brown wrote:


The region-before/after get printed on blank page unless I specify a conditional which has neither of them. In the piece below, I've got a first page, rest pages and a blank page specified as conditionals. If I've got this wrong, let me know, I'm trying to make things as effecient as possible.

Regards,
Daniel


Well, I'm unsure right now, but at any rate, I don't think you need the $report_number/xsl:attribute portions below, unless I'm missing something. You are allowed to (actually, should) reuse the *same* fo:page-sequence-master with multiple fo:page-sequences. (Just set the master-reference of each fo:page-sequence to the master-name of the single fo:p-s-m.) So you should be able to have just one fo:p-s-m with one master-name here.

Also, only the fo:page-sequence-master below uses the "master-name" property. As you can see in the fo:c-p-m-r description[1], "master-name" has no meaning as a property for this formatting object. So the code giving a master-name property to these FO's can also be removed.

Glen

[1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_conditional-page-master-reference


 > <fo:page-sequence-master>
 >            <xsl:attribute name="master-name">Report_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-name">Report_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-name">Report_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-name">Report_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   [email protected]
> 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to