eXist-DB / XQuery - XSL transform unable to set up transformer: no protocol

你离开我真会死。 提交于 2019-12-24 10:22:42

问题


Environment: eXist-db 4.2.1 , XQuery 3.1, XSLT 2.0

I am firing off a transformation of an XML document in eXist-DB - XQuery which produces the following error:

exerr:ERROR Unable to set up transformer: no protocol: 
/db/apps/deheresi/styles/ms609__testxsl-withmodes.xsl [at line 265, column 26]

I haven't been able to locate this error in online documentation or searches. It's triggered by this 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
 };

All of the variables $globalvarare strings declared in a single module:

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/');

Thanks in advance...

来源:https://stackoverflow.com/questions/52897533/exist-db-xquery-xsl-transform-unable-to-set-up-transformer-no-protocol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!