That isn't necessarily a problem. Is there only one data/footer element?
If so, you can just put the needed xsl:value-of in the
fo:static-content.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 

________________________________

From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] 
Sent: Friday, December 12, 2008 16:35
To: fop-users@xmlgraphics.apache.org
Subject: RE: Force page break to skip immediate next page and continue
writing on third page



Yes, unfortunately the footer content is dynamic and will change
depending on the content being pulled in by the xml. :-(

 

________________________________

From: Amick, Eric [mailto:eric.am...@mail.house.gov] 
Sent: Friday, December 12, 2008 4:26 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Force page break to skip immediate next page and continue
writing on third page

 

I assume that simple is a simple-page-master. Create a second
simple-page-master called, say, blank-page which is a copy of simple
with one difference: Define the region-body in blank-page as

 

<fo:region-body region-name="blank"/>

 

You'll then need an fo:page-sequence-master that looks something like
this:

 

<fo:page-sequence-master master-name="document">

   <fo:single-page-master-reference master-reference="simple"/>

   <fo:single-page-master-reference master-reference="blank-page"/>

   <fo:repeatable-page-master-reference master-reference="simple"/>

</fo:page-sequence-master>

 

Take the page break off the fo:block as well. If you use that
page-sequence-master, you will get a blank second page if and only if
the data overflows the first page. Putting the footer on the second page
is trickier and depends on whether that footer can change. If this was
FO 1.1, you could use flow maps; you may have to resort to having
fo:static-content in blank-page instead.

 

Eric Amick

Legislative Computer Systems

Office of the Clerk

 

 

________________________________

From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] 
Sent: Friday, December 12, 2008 14:53
To: fop-users@xmlgraphics.apache.org
Subject: Force page break to skip immediate next page and continue
writing on third page

Hi

 

I need to force page break within my fo block such that

If there is content from page 1('header') which is overflowing onto page
2 then it skips page 2 but continuous onto page 3 while at the same time
the 'footer' is written on page 2.

 

This is what my XSL looks like

 

<fo:page-sequence master-reference="simple">

            <fo:flow flow-name="xsl-region-body">                 

                        <fo:block break-after="page">

                                    <xsl:apply-templates
select="data/header"/>

                        </fo:block>

<fo:block>

                                    

                                    <xsl:apply-templates
select="data/footer"/>

                        </fo:block>                      

            </fo:flow>          

</fo:page-sequence>

  </fo:root> 

 </xsl:template>

 

 

 <xsl:template match="header">       

       <fo:block  

font-size="32pt" 

             font-weight="bold"

                         font-family="Helvetica"

                                     >

         <xsl:value-of select="."/>

       </fo:block> 

 </xsl:template>

 

<xsl:template match="footer">

              <fo:block  

font-size="32pt" 

             font-weight="bold"

                         font-family="Helvetica"

                                     >

         <xsl:value-of select="."/>

       </fo:block> 

 

</xsl:template>

 

 

 

Regards

Abhishek

 

 

 

Regards

Abhishek

 

Reply via email to