admin.groupModuleLocation( namespace-uri as String, location as String ) as element(gr.moduleLocation)
This function constructs a module namespace element with the specified namespace URI and location.
Parameters | |
---|---|
namespace-uri | The namespace URI. |
location | The module location. |
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() admin.groupModuleLocation("myNamespace", "/my/location/module.xqy") //returns the moduleLocation specification