[xquery-talk] module path question
Michael Kay
mike at saxonica.com
Fri Mar 23 13:08:59 PST 2007
> But I used the following command and still got the error.
> java -cp $LIB/saxon8.jar net.sf.saxon.Query master.xquery
>
> Mike could you please share your cmd?
>
There's nothing special about the command. I've got
c:\tests\testsuite\qmodule002.xq:
=================================
(: MAIN MODULE :)
declare namespace ns1 = "namespace/ns1";
import module namespace ns2 = "namespace/ns2" at "dir/xmodule002b.xq";
ns2:fun1()
c:\tests\testsuite\dir\xmodule002b.xq
=====================================
module namespace ns2 = "namespace/ns2";
declare function ns2:fun1() {
doc('source.xml')
};
c:\tests\testsuite\dir\source.xml
=================================
<any-source/>
and I do
java -cp c:\saxon-build\8.7.3\bj\saxon8.jar net.sf.saxon.Query -t
c:\tests\testsuite\qmodule\qmodule002.xq
and it displays <any-source/>
Michael Kay
http://www.saxonica.com/
More information about the talk
mailing list