I connect to marklogic through XDBC server, the root for this server
is /mydir/myroot and it use file system as module
on file system, the xquery code is in /mydir/myroot/test/myxqy/a.xqy
this structure is for switching directory around, so I can have
different versions like
/test/myxqy/a.xqy
/dev1/myxqy/a.xqy
/dev2/myxqy/a.xqy
inside a.xqy, I want to know the file system path, like I want to know
a.xqy is from /test/myxqy/a.xqy, not from /dev1/myxqy/a.xqy
I tried to put code inside a function in a.xqy like
(
xdmp:log( fn:concat( "the request path is: ", xdmp:get-request-
path()) )
,
xdmp:log( fn:concat( "the root path is: ", xdmp:modules-root() ) )
)
and I run it through XDBC server, I can get the root path is: /mydir/
myroot, but the request path is empty, I think I used the wrong method.
How can I get the path of /test/myxqy/a.xqy inside a.xqy code?
Thanks, Helen
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general