Bug 31570 - page break and keep together do not work well together
Summary: page break and keep together do not work well together
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: PC Windows XP
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 21:59 UTC by dharmendra sethi
Modified: 2012-04-01 06:50 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dharmendra sethi 2004-10-06 21:59:41 UTC
Below is the code from my xsl file - I am getting three pages in total. Issue 
is I am having getting first table on seprate page and second table on seprate 
page. 

The first table should be on the actually on the very first page as there is 
lot of space at the bottom of first page(FYI - first page has some data).  

		  	<xsl:when test="SUB_PRODUCT_ID=	'ZZZZ' and PRODUCT_ID =
	'ZZ'">

			<fo:table-row keep-with-next="always">
				
				<fo:table-cell>
				</fo:table-cell>
				<fo:table-cell>
				</fo:table-cell>
				<fo:table-cell>
				</fo:table-cell>
				<fo:table-cell>
				</fo:table-cell>			
	
				<fo:table-cell>
				</fo:table-cell>

				<fo:table-cell number-columns-spanned="4">

					<fo:table table-layout="fixed" 
width="100%">
					<fo:table-column column-
width="proportional-column-width(1)"/>
					<fo:table-column column-
width="proportional-column-width(1)"/>

					<fo:table-body>
					<fo:table-row keep-with-next="always">

						<fo:table-cell>
						<fo:block space-before="8mm" 
text-align="start" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-after.maximum = "6pt">Gesamtsumme netto
						</fo:block>
						</fo:table-cell>	
						
						<fo:table-cell>
						<fo:block space-before="8mm" 
text-align="end" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-before.minimum = "6pt" ><xsl:value-of 
select="BILLED_AMOUNT"/>
						</fo:block>
						</fo:table-cell>

					</fo:table-row>
					<fo:table-row keep-with-next="always">
						<fo:table-cell>
						<fo:block space-before="2mm" 
text-align="start" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-after.maximum = "6pt" wrap-option="no-wrap">MwSt. 
						</fo:block>
						</fo:table-cell>
						<fo:table-cell>
						<fo:block space-before="2mm" 
text-align="end" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-before.minimum = "6pt" ><xsl:value-of select="TAX"/>
						</fo:block>
						</fo:table-cell>

					</fo:table-row>
					<fo:table-row keep-with-next="always">
						<fo:table-cell>
						<fo:block space-before="2mm" 
text-align="start" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-after.maximum = "6pt" wrap-option="no-wrap">Summe brutto 
						</fo:block>
						</fo:table-cell>
						<fo:table-cell>
						<fo:block space-before="2mm" 
text-align="end" font-size="7pt" font-weight="bold" keep-with-next.within-
page="always" space-before.minimum = "6pt"><xsl:value-of 
select="AFTER_TAX_AMOUNT"/>
						</fo:block>
						</fo:table-cell>
						
					</fo:table-row>

					</fo:table-body>
					</fo:table>

				</fo:table-cell>
			</fo:table-row>
			
			<fo:table-row>
				<fo:table-cell>
				<xsl:if test= "position() != last() -1 " > 
				<fo:block break-after="page"/> </xsl:if > 
				<fo:table table-layout="fixed" padding-
before="0.1in" padding-after="0.1in" padding-start="0.1in" padding-end="0.1in">
					       
						<fo:table-column column-
width="3.5cm"/>

						<fo:table-body>
							<fo:table-row>
								<fo:table-cell 
number-columns-spanned="7">
									
								
	<fo:block  space-before="8mm" font-size="7pt" text-
align="left">InvoiceText: <xsl:value-of select="INVOICE_TEXT"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-align="left">Fund 
Type: <xsl:value-of select="FND_TYPE"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-
align="left">Payment Type: <xsl:value-of select="PMNT_TYPE"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-align="left">Due 
Date: <xsl:value-of select="DUE_DATE"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-
align="left">Wire<xsl:value-of select="WIRE1"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-
align="left">Wire<xsl:value-of select="WIRE2"/> 
								
	</fo:block>
								
	<fo:block  space-before="2mm" font-size="7pt" text-
align="left">Wire<xsl:value-of select="WIRE3"/> 
								
	</fo:block>

								</fo:table-
cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</fo:table-cell>
			</fo:table-row>
				
			
			
			</xsl:when>
Comment 1 Pascal Sancho 2007-11-20 01:53:22 UTC
Fixed in FOP 0.94 and probably earlier versions
Comment 2 Glenn Adams 2012-04-01 06:50:24 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed