I want to generate a dynamic PDF using Xml apache Graphics

my XML file contains a list of Object. I need to put each object in one page. I'm using for loop in xsl-fo file to display data but my pages overlap

Any help will be appreciated