Module 未找到架构/模块的目标命名空间

Module 未找到架构/模块的目标命名空间,module,namespaces,xquery,exist-db,zorba,Module,Namespaces,Xquery,Exist Db,Zorba,我对XQuery比较陌生。然而,我对我的问题做了大量的研究,不明白我做错了什么。这是我的密码: (: XQuery main module :) xquery version "3.0" encoding "utf-8"; import schema namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; import module namespace http = "http://expath.org/n

我对XQuery比较陌生。然而,我对我的问题做了大量的研究,不明白我做错了什么。这是我的密码:

(: XQuery main module :)
xquery version "3.0" encoding "utf-8";

import schema namespace output =  "http://www.w3.org/2010/xslt-xquery-serialization";
import module namespace http = "http://expath.org/ns/http-client";
import module namespace rand = "http://www.zorba-xquery.com/modules/random";

declare variable $URL as xs:string := ();
declare variable $AF_Tok as xs:integer := rand:seeded-random-between(23 (:This is the seed, needs to be randomized too, will fix later.:),
                                                                 0  (:This is the lower bound for every number in the sequence.:),
                                                                 9  (:This is the higher bound for every number in the sequence.:),
                                                                 32 (:This is the number of random numbers in the returned sequence:)
                                                                 );
declare variable $Client_ID as xs:string := ("XXXXX");
declare variable $Client_Secret as xs:string := ("XXXXX");

<test>
    <random_number>{$AF_Tok}</random_number>
</test>
(:XQuery主模块:)
xquery版本“3.0”编码“utf-8”;
导入架构命名空间输出=”http://www.w3.org/2010/xslt-xquery-serialization";
导入模块命名空间http=”http://expath.org/ns/http-client";
导入模块名称空间rand=”http://www.zorba-xquery.com/modules/random";
将变量$URL声明为xs:string:=();
将变量$AF_Tok声明为xs:integer:=rand:seedrandom-between(23)(:这是种子,也需要随机化,稍后将修复。),
0(:这是序列中每个数字的下限。:),
9(:这是序列中每个数字的上限。:),
32(:这是返回序列中的随机数:)
);
将变量$Client_ID声明为xs:string:=(“XXXXX”);
将变量$Client_Secret声明为xs:string:=(“XXXXX”);
{$AF_Tok}
我在eXist和Sausalito的Eclipse工具中都遇到了相同的错误。有没有人能测试一下,如果你也发现了错误,请告诉我?我被难倒了,任何帮助都将不胜感激

:6,1:静态错误[err:XQST0059]:“”:未找到架构/模块的目标命名空间

我原以为这可能是zorba的问题,但对于w3和expath名称空间,我也会遇到同样的错误


更新:我正在使用Mac OS X 10.8顺便说一句,你不能简单地将Zorba模块与eXist一起使用。我也不认为eXist支持HTTP客户端EXPath模块。查看处理器(eXist或Sausalito)的文档,只使用它们支持的模块。如果它们是内置的,使用一个简单的
导入模块名称空间
就足够了。但是,如果您想包含一个通用模块,还必须在一些处理器相关目录中提供模块源


对于eXist,请查看以了解如何包含模块。eXist也有随机函数,但它们是在数学模块中构建的。

@dirrk I实际上通过将命令更改为“import module namespace rand=;”解决了这个错误