Hello Sergiu, This the peice of xsl that i have made
<xsl:for-each select="record"> <fo:table width="100%" font-size="10pt" break-after="page"> <fo:table-column column-width="3cm" /> <fo:table-column column-width="8cm" /> <fo:table-body> <fo:table-row> <fo:table-cell text-align="left"> <fo:block left="0cm"> <xsl:value-of select="data1"/> </fo:block> </fo:table-cell> <fo:table-cell text-align="left"> <fo:block left="0cm"> <xsl:value-of select="data2"/> </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell number-columns-spanned="2" text-align="left" width="100%"> <fo:block left="0cm"> <xsl:value-of select="data3"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </xsl:for-each> What this does is adds a blank page at the end of the last record. I may be doing somthing wrong but am not able to catch it Sergiu Dumitriu-2 wrote: > > On 10/15/2009 01:21 PM, shrutin wrote: >> >> Hello All, >> >> I have a list of record and each record needs to be displayed on a >> different >> page. But if i add a break-before="page" or break-after="page" i get a >> blank >> page before or after respectively. >> So how could i achieve this requirement without an extra blank page, also >> setting the length of the row or column is also not possible before the >> data >> content may vary. > > Strange, the specification says that only "odd-page" and "even-page" > create blank pages, while "page" simply forces the content to be on a > new page. You either have some other code that generates the extra page > (maybe a previous attempt to insert page breaks, or a break-after on > another element), or there's a bug in FOP. Please check that there's no > problem in your XSLT or FO documents. > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Page-Breaks-in-Table-tp25906883p25907859.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
