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 2008/03/10 15:06:32 UTC

DO NOT REPLY [Bug 44434] FO java Memory Error

https://issues.apache.org/bugzilla/show_bug.cgi?id=44434





--- Comment #2 from Yoganathan Kaliyaperumal <yo...@fmr.com>  2008-03-10 07:06:31 PST ---
I've increased the java heap size but still i'm getting memory error. I'm
pasting the XML and fo file here. Please let me know what is the problem

XML file: There are three columns. Third column benchmark has multiple lines
tagged within <LINE>

- <composite_data>
  <composite_id>TC104</composite_id> 
  <composite_name>Diversified Large Cap Core Composite (TC104)</composite_name> 
  <composite_status>A</composite_status> 
  <composite_strategy>The investment objective of this composite is to provide
excess returns over the S&P 500 Index through active stock selection while
maintaining portfolio risk characteristics similar to the
market.</composite_strategy> 
- <benchmark>
  <LINE>From: 30/09/1990</LINE> 
  <LINE>Standard & Poor's 500 Index</LINE> 
  </benchmark>
  </composite_data>

FO file:

<fo:table>
        <fo:table-column column-width="6cm"/>
        <fo:table-column column-width="12cm"/>
        <fo:table-column column-width="10cm"/>
        <fo:table-body font-family="Times Roman" font-size="10pt"
line-height="15pt" font-weight="normal">

           <xsl:for-each select="//composite_data[composite_status = 'A']">
           <xsl:sort select="composite_id" data-type="text"/>

           <fo:table-row>

           <fo:table-cell padding-top="3mm"><fo:block>
           <xsl:value-of select="composite_name"/>
           </fo:block></fo:table-cell>

           <fo:table-cell padding-top="3mm" padding-left="1cm"><fo:block>
           <xsl:value-of select="composite_strategy"/>
           </fo:block></fo:table-cell>

           <fo:table-cell padding-top="3mm" padding-left="1cm"><fo:block>
           <xsl:for-each select="benchmark">                      
             <xsl:for-each select="LINE">
               <fo:block>
                <xsl:value-of select="."/>
               </fo:block>
              </xsl:for-each>
           </xsl:for-each>
           </fo:block>
           </fo:table-cell>

           </fo:table-row>

           </xsl:for-each>
        </fo:table-body>
      </fo:table>

Basically fo:block for each LINE is giving memory issue. If i remove it, all
the lines are wrapped together in 3rd column but i want in seperate lines. Is
there any way that i can display multi-records in a table-cell.

Thanks,
Nathan


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.