Hi Xavier,
This might be just me misunderstanding XQuery, but ...

I'm trying to refactor some Qizx server queries - that is, in the server's xqs 
directory.

I have extracted a utility function into a library module
-----------util.xq------------------
xquery version "1.0";
module namespace util="http://xxx.org/functions/util";;

declare function util:docids()
{....
-----------------------------------

A main module/query then imports it:
-----------selectmap.xq------------
xquery version "1.0";
import module namespace util="http://xxx.org/functions/util"; at "util.xq";
...
let $docids := util:docids()
-----------------------------------

However, when I call the latter query, I get the error:
    Compilation: 1 error(s) in static analysis line 9 column 0:
    module http://xxx.org/functions/util cannot be resolved

I have also tried it with a full file: URI and an http: URI to the query, with 
the same result.

What am I doing wrong?

Thanks

Roy MacLean| Documentation & Training| T: +44 20 7562 7777 | M: +44 7956 474 
911 | Dovetail | 51 Moorgate, London, EC2R 6BH, UK |

The information in this email is for the sole use of the intended 
recipients(s).  It may be confidential and/or legally privileged.  Any review, 
disclosure, copying, distribution, retention, or any other use by others is 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies. We reserve the right to monitor email 
content for the purposes of ensuring compliance with legal requirements and 
company policies and your sending to, or receiving from, us of any email 
constitutes your agreement to these terms.

 
--
Qizx Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/qizx-support

Reply via email to