ou of heap space using format.xpl

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ou of heap space using format.xpl

Pascal Heus
How memory hungry is the format.xpl pipeline? I'm testing with a
relatively small 160K XML document but get OutOfMemory errors?
Was hoping to use with on large documents but this looks a bit doubtful.
Any suggestion?
thanks
*P

<xforms:bind nodeset="instance('formatted-instance')"
 calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xpl',
'data', instance('instance'), 'data')/*, 'html')"/>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: ou of heap space using format.xpl

Erik Bruchez
Administrator
Pascal,

This is mainly an XSLT stylesheet, which may not be optimal. I believe
160K XML will translate into close to 2 MB of RAM used. Now clearly the
HTML output of that formatting processor will be several times larger
than the XML document to format (each opening bracket is colored
differently, etc.), which may explain your OOM error.

One thing to do would be to look at the XSLT stylesheet called by
format.xpl (xml-formatting.xsl) and see if they can be optimized, or if
their output can be made smaller.

I also know that Firefox / Mozilla uses an XSLT stylesheet to format XML
documents. Maybe you could give that a try?

Best,

-Erik

Pascal Heus wrote:

> How memory hungry is the format.xpl pipeline? I'm testing with a
> relatively small 160K XML document but get OutOfMemory errors?
> Was hoping to use with on large documents but this looks a bit doubtful.
> Any suggestion?
> thanks
> *P
>
> <xforms:bind nodeset="instance('formatted-instance')"
>  calculate="saxon:serialize(xxforms:call-xpl('oxf:/config/theme/format.xpl',
> 'data', instance('instance'), 'data')/*, 'html')"/>
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws