Hello All,
I am new to FOP and have started my first assignment. i need to know how can
i insert a page break on the basis of a  condition.
Scenario:
I have a list and based on the value in the list i need to break pages.
i.e my XML data is
<data>
   <record>
     <date>01/01/2009</date>
     <srno>A</srno>
     <name>AA</name>
    </record>
   <record>
     <date>01/01/2009</date>
     <srno>A</srno>
     <name>AA</name>
    </record>
   <record>
     <date>02/01/2009</date>
     <srno>A</srno>
     <name>AA</name>
    </record>
</data>
Now my XSL has a <xsl:for-each> statement for iterating the list into a
table. But what i need is that the as the date changes a page break should
be inserted. 
i.e. In the above example the first 2 records should be on page 1 and then a
page break should be inserted enabling the 3rd record to be on another page.
How could i do this?

Awaiting replies.

Thanks
Shruti
-- 
View this message in context: 
http://www.nabble.com/Page-Break-in-FOP-tp25660112p25660112.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to