Lim Huat Heng wrote:
I guess the division is wrong, how can I solve it?
There is no division in your code snippet at all. One probelm is here:
<xsl:variable name="colWidth">
...
<fo:table-column column-width="$colWidth"/> <!-- LHH Modified 200 -->
</xsl:variable>
You reference the variable from within its definition, which
wont give the expected value.
Besides, when I try to generate a report that is 100 pages long, it
> took almost 5 minutes to get the report rendered and my web server
> consume about 150MB of RAM. Is there a way I could improve this?
a) Read http://xml.apache.org/fop/running.html#memory
b) Don't use tables. They consume a lot of memory.
Lastly, when I have some punctuations in the data, in particularly '&' (so
> far that's what I found), I get the following error:
HTML2PDFServlet.doGet: javax.servlet.ServletException:
> org.xml.sax.SAXParseException: Illegal character or entity reference syntax.
Is it due to Java or XML? Please advice. Thanks.
XML. This is a VFAQ. See for example
http://xml.apache.org/fop/fo.html#xml-entity-chars
and check the XML spec (actually, this shold come quite
early in beginner's classes).
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]