I am not sure if this tells more of the problem (xquery:invoke does not open the collection), but: if the query does something with the collection plus predicates retrieved, the query is evaluated. So, in my example
collection('suuryritys_com/suuryritys.com/data/ou')//*[@cat='production']
if I add some extra content that forces the evaluation, like
<a>{collection('suuryritys_com/suuryritys.com/data/ou')//*[@cat='production']}</a>/*
I.e. add the result to a -element and retrieve it, the xquery:invoke("file-name.xq") evaluates the query, even if the database (suuryritys_com) is closed!
-- Arto Viitanen Microteam Oy Finland
Hi Arto,
thanks for your report. Could you provide us with a self-contained example that allows us to reproduce the problem?
Christian ___________________________
On Thu, Feb 21, 2013 at 9:03 AM, Arto Viitanen arto.viitanen@microteam.fi wrote:
I am not sure if this tells more of the problem (xquery:invoke does not open the collection), but: if the query does something with the collection plus predicates retrieved, the query is evaluated. So, in my example
collection('suuryritys_com/suuryritys.com/data/ou')//*[@cat='production']
if I add some extra content that forces the evaluation, like
<a>{collection('suuryritys_com/suuryritys.com/data/ou')//*[@cat='production']}</a>/*
I.e. add the result to a -element and retrieve it, the xquery:invoke("file-name.xq") evaluates the query, even if the database (suuryritys_com) is closed!
-- Arto Viitanen Microteam Oy Finland
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de