pkg:put-server( $pkgname as xs:string, $srvxml as element() ) as empty-sequence()
[DEPRECATED: use cma:generate-config
and
cma:apply-config
instead.]
xquery version "1.0-ml"; import module namespace pkg = "http://marklogic.com/manage/package" at "/MarkLogic/manage/package/package.xqy"; pkg:put-server("mypackage", pkg:server-configuration("Default", "dashml")) (: Add the configuration of the 'dashml' app server located in the 'Default' group to the package named, 'mypackage'. :)