Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:group-module-location

admin:group-module-location(
   $namespace-uri as xs:string,
   $location as xs:string
) as element(gr:module-location)

Summary

This function constructs a module namespace element with the specified namespace URI and location.

Parameters
namespace-uri The namespace URI.
location The module location.

Example


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
		  at "/MarkLogic/admin.xqy";

let $config := admin:get-configuration()
return
 admin:group-module-location("my-namespace", "/my/location/module.xqy")
  (: returns the module-location specification :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.