<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getInvokedPath.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getInvokedPath</api:function-name><api:suggest>xdmp.getinvokedpath</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getinvokedpath</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-invoked-path">/apidoc/8.0/xdmp:get-invoked-path.xml</api:function-link><api:function mode="javascript" type="builtin" lib="xdmp" name="getInvokedPath" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getInvokedPath"><api:summary>
  Returns the path of the module that is being invoked. Note that this is
  different from <code xmlns="http://www.w3.org/1999/xhtml">xdmp:get-request-path</code> when the module is
  invoked because an invoke or eval does not create a new request.
</api:summary><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.getInvokedPath();
=&gt; "/example.xqy"
</pre></api:example></api:function></api:function-page>