XQuery/Registered Modules

(Redirected from XQuery/List Modules)

Motivation

edit

You want to check to see if an module is loaded in your runtime systems.

Method

edit

Some modules that you may need are not loaded into the runtime engine when the server starts. If this is the case you may have to dynamically load a module.

Listing current modules in the runtime

edit
xquery version "1.0";
 
let $modules := util:registered-modules()
return
<results>{
   for $module in $modules
   order by $module
   return
      <module>{ $module}</module>
   }
</results>

Run

Sample Results

edit
<results>
    <module>http://exist-db.org/xquery/compression</module>
    <module>http://exist-db.org/xquery/datetime</module>
    <module>http://exist-db.org/xquery/examples</module>
    <module>http://exist-db.org/xquery/file</module>
    <module>http://exist-db.org/xquery/httpclient</module>
    <module>http://exist-db.org/xquery/image</module>
    <module>http://exist-db.org/xquery/mail</module>
    <module>http://exist-db.org/xquery/math</module>
    <module>http://exist-db.org/xquery/ngram</module>
    <module>http://exist-db.org/xquery/request</module>
    <module>http://exist-db.org/xquery/response</module>
    <module>http://exist-db.org/xquery/scheduler</module>
    <module>http://exist-db.org/xquery/session</module>
    <module>http://exist-db.org/xquery/sql</module>
    <module>http://exist-db.org/xquery/system</module>
    <module>http://exist-db.org/xquery/text</module>
    <module>http://exist-db.org/xquery/transform</module>
    <module>http://exist-db.org/xquery/util</module>
    <module>http://exist-db.org/xquery/validation</module>
    <module>http://exist-db.org/xquery/xmldb</module>
    <module>http://exist-db.org/xquery/xmldiff</module>
    <module>http://www.w3.org/2005/xpath-functions</module>
</results>