| '''Summary'''
|Returns the path relative to the RESTXQ URI.
| '''Examples'''
|The following RESTXQ function can e.g. be called via <code><nowiki>http://localhost:8984/restxq/hey/john</nowiki></code>:
<pre class="brush:xquery">
module namespace test = 'http://basex.org/examples/test';
import module namespace request = "http://exquery.org/ns/restxq/Request";
declare
%restxq:path("/hey/{$name}")
%restxq:request("{$req}")
function test:get($req, $name)
{
'Hey ' || $name || '! Relative path of this page: ' || request:path($req)
};
</pre>
|}