we are using XQuery’s import module functionality and experience problems when our application is still running and we try to rename the module file.


We assume that the module file is not closed after compiling the query and have probably tracked down the problem:


In Saxon 8.0(b) it seams that in the class:



the function:

protected StaticQueryContext loadModule(String namespaceURI, String locationURI, int firstGlobalSlot)


opens an input stream:

InputStream is = absoluteURL.openStream();

            BufferedReader reader = new BufferedReader(

                                        new InputStreamReader(is));


but does not actually close the stream or the reader.



best regards,

Michael Eichberg



Software Technology Group

Department of Computer Science

Darmstadt University of Technology

Alexanderstrasse 10

64289 Darmstadt

Phone.: +49 6151 16 3608

Fax:     +19 6151 16 5410

E-Mail: eichberg@informatik.tu-darmstadt.de

WWW: http://www.st.informatik.tu-darmstadt.de/staff/Eichberg