Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:group-namespace

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

Summary

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

Parameters
prefix The namespace prefix.
namespace-uri The namespace URI.

Example


  xquery version "1.0-ml";

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

  admin:group-namespace("myprefix", "http://myuri/namespace")
  (: the namespace element :)

  

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