dom:set-name( $domain-name as xs:string, $new-name as xs:string ) as empty-sequence()
Set the name of the domain to something else. An error is raised if a domain with the new name already exists or if the domain cannot be found.
Parameters | |
---|---|
domain-name | The name of the domain whose name will be changed. |
new-name | The new name for this domain. |
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:set-name( "Test", "Incoming" )