Functions for inspecting XQuery modules and functions
inspect:inspect-function($function as function(*)) as node()
Returns an XML fragment describing the function referenced by the passed function item.
$function | The function item to inspect |
inspect:inspect-module($location as xs:anyURI) as element()?
Compiles a library module from source (without importing it) and returns an XML fragment describing the module and the functions/variables contained in it.
$location | The location URI of the module to inspect |
inspect:inspect-module-uri($uri as xs:anyURI) as element()?
Returns an XML fragment describing the library module identified by the given namespace URI and the functions/variables contained in it.
$uri | The namespace URI of the module to inspect |
inspect:module-functions() as function(*)*
Returns a sequence of function items pointing to each publicfunction in the module. If no $location is provided, then thecurrent (calling) module is inspected.
inspect:module-functions($location as xs:anyURI) as function(*)*
Returns a sequence of function items pointing to each publicfunction in the module. If no $location is provided, then thecurrent (calling) module is inspected.
$location | The location URI of the module to be inspected. |
inspect:module-functions-by-uri($uri as xs:anyURI) as function(*)*
Returns a sequence of function items pointing to each public function in the specified module.
$uri | The URI of the module to be loaded. |