xsl fo - Limiting number of rows in a page -
i have table with, suppose, 20 rows , want table displayed such each page have 5 rows. 20 rows should displayed in 4 pages. using apache fop print pdf. can me out in this?
this how achieved this.
<xsl:choose> <xsl:when test="position() mod 4 = 0"> <!-- add table rows here property break-after--> <fo:table-row break-after="page"> <fo:table-cell> <xsl:text>table content here</xsl:text> </fo:table-cell> </fo:table-row> </xsl:when> <xsl:otherwise> <!-- add table rows here without property break-after--> <fo:table-row> <fo:table-cell> <xsl:text>table content here</xsl:text> </fo:table-cell> </fo:table-row> </xsl:otherwise> </xsl:choose>
Comments
Post a Comment