Changes

Jump to navigation Jump to search
22 bytes added ,  15:57, 9 March 2023
no edit summary
| width='120' | '''Signature'''
|<pre>inspect:functions(
$uri href as xs:string := ()
) as function(*)*</pre>
|- valign="top"
| '''Summary'''
|Returns function items for all user-defined functions (both public and private) that are known in the current query context. If a an {{Code|$urihref}} value is specified, the specified resource will be retrieved as a string and compiled, and its functions will be added to the query context and returned to the user. A relative URI will be resolved against the static base URI of the query.
|- valign="top"
|'''Examples'''
| width='120' | '''Signature'''
|<pre>inspect:function-annotations(
$function as function(*)?
) as map(xs:QName, xs:anyAtomicType*)</pre>
|- valign="top"
| width='120' | '''Signature'''
|<pre>inspect:static-context(
$function as function(*)?,
$name as xs:string
) as item()*</pre>
| width='120' | '''Signature'''
|<pre>inspect:type(
$value input as item()*,
$options as map(*) := ()
) as xs:string</pre>
|- valign="top"
| '''Summary'''
|Returns a string representation of the type of a the given {{Code|$valueinput}}:
* The string includes the occurrence indicator.
* The type of functions and nodes may be stricter than the returned type.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu