Changes

Jump to navigation Jump to search
457 bytes added ,  10:39, 17 October 2013
|}
Two more functions are available to extract database information of a node: {| class="wikitable"|-!Function!Example!Description|-|<code>[[Database Module#db:name|db:name()]]</code>|{{Code|db:name($node)}}|Returns the name of the database in which the specified {{Code|$node}} is stored.|-|<code>[[Database Module#db:path|db:path()]]</code>|{{Code|db:path($node)}}|Returns the path of the database document in which the specified {{Code|$node}} is stored.} The {{Code|fn:document-uri()}} and {{Code|fn:base-uri()}} functions return URIs that can also be reused as arguments for the {{Code|fn:doc()}} and {{Code|fn:collection()}} functions. As a result of this, as an example, the following example query will always return returns {{Code|true}}:
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu