"[WARNING] Some static content could not fit .....
Good Afternon. I have created a FOP report for a webApp and was using XSLFormatter when i developed it. It renders perfectly in that envoirnemnt. however, when I tried to run it from Java using the TraxInputHandler I cannot seem to gernate the region-before. the error is displays is: "[WARNING] Some static content could not fit in the area." I assumed this to mean what i was displaying was too big for the allotted area but I have slimmed the header down to trand and print just one word and still get the error. Any suggestions would be great!!
My XSL:<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.5" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:pes="http://www.gov.bc.ca/tran/estimate"
xmlns:pfop="http://www.gov.bc.ca/tran/pesFOP" >
<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4"
page-height="8.5in"
page-width="11in">
<fo:region-body margin-top="2.0in"
margin-bottom="0.5in"
margin-left="0.5in"
margin-right="0.5in"/>
<fo:region-before padding="6pt 1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simpleA4">
<fo:static-content flow-name="xsl-region-before">
<fo:block font-size="10pt">
<xsl:apply-templates select="pfop:fopContractRoot"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="10pt">
<xsl:apply-templates select="/pfop:fopContractRoot/estimate/pages"/>
</fo:block>
<fo:block id="end-of-report"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="pfop:fopContractRoot">
<fo:table table-layout="fixed">
<fo:table-column column-width="3in"/>
<fo:table-column column-width="4in"/>
<fo:table-column column-width="3in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell> #160;</fo:table-cell>
<fo:table-cell>
<fo:block font-size="12pt" font-weight="bold" text-align="center">
PROJECT EXPENDITURES
</fo:block>
</fo:table-cell>
<fo:table-cell> #160;</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="pages">
........Stuff that works! ..........
</xsl:template>
</xsl:stylesheet>
|