Thanks, I will fix this.
Michael Kay

From: [] On Behalf Of Michael Eichberg
Sent: 30 August 2004 14:11
Subject: [saxon] XQuery and "Import Module"



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