Xalan document() memory problem

  • Thread starter Tobias Schierge
  • Start date
T

Tobias Schierge

Hi,

i'm using the document()-function within xsl to process about 100 documents
within one xalan-transformation. This leads to an outofmemoryexception.

The FAQ <http://xml.apache.org/xalan-j/faq.html> sais that i need to use the
PI..

<?xalan:doc-cache-off?>

...to prevent xalan from caching these document.

But if i add this piece of code the parser says that a colon is not allowed
when using namespaces.

What do i need to use this processing instruction?

Thanks,

Tobias
 
C

Christian

Tobias Schierge said:
i'm using the document()-function within xsl to process about 100 documents
within one xalan-transformation. This leads to an outofmemoryexception.

The FAQ <http://xml.apache.org/xalan-j/faq.html> sais that i need to use the
PI..

<?xalan:doc-cache-off?>

..to prevent xalan from caching these document.

But if i add this piece of code the parser says that a colon is not allowed
when using namespaces.

What do i need to use this processing instruction?
As far as I know, Xalan cashes all documents, it received through the
document function. The implementation of the document function in

org.apache.xalan.xsltc.dom.LoadDocument

takes a boolean value if it should cache such documents:

...
private static DTMAxisIterator document(String uri, String base,
AbstractTranslet translet, DOM dom,
boolean cacheDOM)
throws Exception
{
....

Guess this processing instruction turns the value to "false"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top