Tuesday 15 January 2013

xml - How break page after my element in xsl-fo -



xml - How break page after my element in xsl-fo -

i utilize code apache xsl-fo:

<xsl:template match="depfilenom"> <fo:root xmlns:fo="http://www.w3.org/1999/xsl/format"> <fo:layout-master-set> <fo:simple-page-master margin-right="1cm" margin-left="2.7cm" margin-bottom="2cm" margin-top="2cm" page-width="21.5cm" page-height="29.7cm" master-name="first"> <fo:region-body margin-right="1cm" margin-left="0cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:static-content flow-name="xsl-after"> <fo:block text-align="center" font-size="10pt"><fo:page-number /></fo:block> </fo:static-content> <fo:block font-family="times" font-size="15pt"> <fo:table> <fo:table-column column-width="10000px" text-align="left"/> <fo:table-body> <fo:table-row> <fo:table-cell border-style='none' vertical-align='middle'><fo:block><xsl:apply-templates select="year" /> year</fo:block></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> want break here ...

i think need use: page-break-before page-break-after don't know how please help me

it's hard sure because fo incomplete, seek adding attribute page-break-after="always" fo:block. if you're trying break after fo:table, , there next siblings in same fo:block, seek moving page-break-after="always" fo:table.

depending on data, may want consider using different fo:page-sequence's different pieces of content.

xml xslt xsl-fo

No comments:

Post a Comment