You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lauren Riley <La...@FBLFinancial.com> on 2008/04/24 22:37:39 UTC
Pages cutting off
I recently upgraded from 0.20.5 to .95. My pages are just suddenly cutting
off at page 7...and I can't figure out why.
I AM getting this error message
[4/24/08 15:31:20:281 CDT] 0000005a AbstractBreak W
org.apache.fop.layoutmgr.PageBreaker$1 notifyOverflow Content of the
region-body on page 7 overflows the available area in block-progression
dimension. (fo:page-sequence, location: 17/-1)
But the table is just getting cut off in the middle, so I'm not sure why.
It's getting cut off in the middle of the BusinessLiability template. But
I forced a page break right before that, and it did break, it had a page 8
with a complete BusinessLiability template...but then the
FarmRanchPersonalProperty template cut off in the middle. I'm confused!
Here's some code snippets
<xsl:template match="accountInfo">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<xsl:call-template name="setLandscapePageMargins"/>
</fo:layout-master-set>
<fo:page-sequence master-reference="all" format="1" force-page-count
="no-force">
<!-- header with running glossary entries -->
<fo:static-content flow-name="xsl-region-before">
<xsl:call-template name="PolicySection"/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:if test="comment">
<xsl:call-template name="CommentSection"/>
</xsl:if>
<xsl:call-template name="InsuredSection"/>
<xsl:if test="umbrella/isAllFarmBureauCoverage">
<xsl:call-template name="UmbrellaSection"/>
</xsl:if>
<xsl:if test="prm or location">
<fo:block overflow="visible" break-before="page"/>
</xsl:if>
<xsl:if test="prm">
<xsl:call-template name="PropertyRatingModifiers"/>
</xsl:if>
<xsl:if test="location">
<xsl:call-template name="LocationsAndStructures"/>
</xsl:if>
<xsl:if test="businessLiability/businessType">
<xsl:call-template name="BusinessLiability"/>
</xsl:if>
<xsl:if test="frpp[indicator='LBF'] or frpp[indicator='LBP']">
<xsl:call-template name="Liability"/>
</xsl:if>
<xsl:if test="frppScheduledTotals or frppBlanketTotals">
<xsl:call-template name="FarmRanchPersonalProperty"/>
</xsl:if>
<xsl:if test="location/additionalInsured">
<xsl:call-template name="AdditionalInsureds"/>
</xsl:if>
<xsl:if test="spp">
<xsl:call-template name="ScheduledPersonalProperty"/>
</xsl:if>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template name="setLandscapePageMargins">
<fo:simple-page-master master-name="all"
page-height="21cm" page-width="27.9cm"
margin-top=".1cm" margin-bottom=".1cm"
margin-left=".1cm" margin-right=".1cm">
<fo:region-body margin-top="3cm" margin-bottom=".1cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
</xsl:template>
<xsl:template name="BusinessLiability">
<fo:block overflow="visible" text-align="start" space-before="10pt"
font-size="12pt" font-family="Helvetica" line-height="1em
+6pt" font-weight="bold"
background-color="gray"
keep-with-next.within-page="always"
border-top="solid thin black">
Business Liability:
</fo:block>
<fo:block overflow="visible">
<fo:table table-layout="fixed" space-before="10pt" font-family="Helvetica
" font-size="9pt" border-collapse="separate" width="100%">
<fo:table-column column-width="6cm"/>
<fo:table-column column-width="5.5cm"/>
<fo:table-column column-width="5.5cm"/>
<fo:table-header>
<fo:table-row keep-with-next.within-page="always">
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
font-weight="bold" text-align="left" background-color="#CCCCCC">Business
Type</fo:block>
</fo:table-cell>
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
font-weight="bold" text-align="left" background-color="#CCCCCC">Gross
Annual Receipts</fo:block>
</fo:table-cell>
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
font-weight="bold" text-align="left" background-color="#CCCCCC">Endorsement
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each select="businessLiability">
<xsl:if test="string-length(businessType) > 0">
<fo:table-row keep-with-next.within-page="
always">
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
text-align="left"><xsl:value-of select="businessType"/></fo:block>
</fo:table-cell>
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
text-align="left"><xsl:value-of select="
format-number(number(grossReceipts),'#,###,###,###')"/></fo:block>
</fo:table-cell>
<fo:table-cell border="solid .75">
<fo:block overflow="visible"
text-align="left"><xsl:value-of select="endorsement"/></fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:if>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
__________________________________________
The information contained in this message may be privileged and
confidential and protected from disclosure. If you are not the intended
recipient of this message, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited. If
you have received this communication in error, please notify us immediately
by replying to the message, and please delete it from your computer.