You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2003/06/16 09:06:52 UTC
DO NOT REPLY [Bug 20797] New: -
Infinite Loop for block text exceeding page size
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20797>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20797
Infinite Loop for block text exceeding page size
Summary: Infinite Loop for block text exceeding page size
Product: Fop
Version: 0.15
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: page-master/layout
AssignedTo: fop-dev@xml.apache.org
ReportedBy: maong@ncs.com.sg
I am encountering infinite loop in FOP and was wondering if there is any
solution for it?
The "remark" value is supposed to store up to 4000 characters. And I have to
keep them together in a page if the size can fit into the available space for
the current page. If the block size is bigger than the available space then
supposed to allow the whole block of text to move to the next page. However,
what we are encountering is that the entire block size could be larger than can
be contained in a single page and we encountered infinite loop.
Is there anyway to circumvent the occuring of the infinite loop and yet allow
to keep the entire block text together when it can fit into a page size and
allow it to overflow into subsequent pages if the block text exceeds a page
size ?
Please help. Any help is greatly appreciated.
Following is a portion of the template we using
<xsl:template name="displayRemark">
<fo:table-row keep-together="always">
<fo:table-row>
<fo:table-cell>
<xsl:if test="string-length(remark) > 0">
<xsl:call-template name="remarkstart"/>
<fo:table width="100%" border-width="0.1pt">
<fo:table-column column-width="0.3cm"/>
<fo:table-column column-width="18.6cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>*</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block wrap-option="wrap" white-space-treatment="preserve" white-space-
collapse="false">
<xsl:apply-templates select="remark"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body></fo:table>
</xsl:if>
</fo:table-cell></fo:table-row>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org