xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31570] New: - page break and keep together do not work well together
Date Wed, 06 Oct 2004 21:59:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31570>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31570

page break and keep together do not work well together

           Summary: page break and keep together do not work well together
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: pdf renderer
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: dsethi@statestreet.com
                CC: dsethi@statestreet.com


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>

Mime
View raw message