pkg:create( $pkgname as xs:string, [$pkgbody as node()] ) as empty-sequence()
[DEPRECATED: use cma:generate-config
and
cma:apply-config
instead.]
Parameters | |
---|---|
pkgname | The name of the package. |
pkgbody | The contents of the package. |
xquery version "1.0-ml"; import module namespace pkg = "http://marklogic.com/manage/package" at "/MarkLogic/manage/package/package.xqy"; pkg:create("mypackage") => Creates an empty package, named "mypackage."