Project

Profile

Help

multiple external documents held in memory

Added by Anonymous about 17 years ago

Legacy ID: #4392840 Legacy Poster: nan00k (nan00k)

If, in the process of transforming a document i need to read in multiple external document via the document() function, is it still the case that the processor must hold each parsed external doc in memory, and is there no way to force or trick the processor into releasing the document in memory?


Replies (1)

RE: multiple external documents held in memor - Added by Anonymous about 17 years ago

Legacy ID: #4393735 Legacy Poster: Michael Kay (mhkay)

By default Saxon will retain the documents in memory in case they are needed again. You can force them to be discarded by using saxon:discard-document(). The usual way to use this is at the same time as loading the document: select="saxon:discard-document(document('abc.xml'))". The memory will then be released when the garbage collector sees that there are no more references to nodes in the document.

    (1-1/1)

    Please register to reply