环境:eXist-db 4.2.1,XQuery 3.1,XSLT 2.0
我正在eXist-DB-XQuery中触发XML文档的转换,该转换会产生以下错误:
exerr:ERROR Unable to set up transformer: no protocol:
/db/apps/deheresi/styles/ms609__testxsl-withmodes.xsl [at line 265, column 26]
我无法在在线文档或搜索中找到此错误。它是由以下XQuery触发的:
declare function document:doc-xsl-docview($node as node(),
$model as map(*), $currentdoc as xs:string)
{
let $currentdocnode := doc(concat($globalvar:URIdb,$currentdoc))
let $xi := concat("xinclude-path=", $globalvar:URIdb)
let $xsltransform := transform:transform(
$currentdocnode,
concat($globalvar:URIstyles,
"ms609__testxsl-withmodes.xsl"),
(<parameters>
<param name="paramPersonurl" value="{$globalvar:URLperson}"/>
<param name="paramPlaceurl" value="{$globalvar:URLplace}"/>
<param name="paramDocurl" value="{$globalvar:URLdoc}"/>
</parameters>),(),$xi)
return $xsltransform
};
所有变量$globalvar
是在单个模块中声明的字符串:
declare variable $globalvar:URIdb := '/db/apps/deheresi/';
declare variable $globalvar:URIdata := concat($globalvar:URIdb,'data/');
declare variable $globalvar:URImodules := concat($globalvar:URIdb,'modules/');
declare variable $globalvar:URIresources := concat($globalvar:URIdb,'resources/');
declare variable $globalvar:URIstyles := concat($globalvar:URIdb,'styles/');
declare variable $globalvar:URItemplates := concat($globalvar:URIdb,'templates/');
预先感谢...