I have several xquery namespace files that were used in multiple files. I want to have namespaces in one common xquery file and import this file that I want to use.
Say for example
I have process-lib.xqy
, util-lib.xqy
and query-lib.xqy
. I used them to import in multiple files, for example,
import module namespace util = "util" at "util-lib.xqy";
import module namespace process = "process" at "process-lib.xqy";
import module namespace query = "query" at "query-lib.xqy";
Now I tried to use them in one common file with the name common-import.xqy
and import this file into several files.
when i tried this approach
import module namespace common-import= "common-import" at "common-import.xqy";
It throws an exception like prefix util has no namespace binding
.
How to do it?
user5474448
source
share