MarkLogic 9 Product Documentation
pkg:installable

pkg:installable(
   $pkgname as xs:string
) as xs:boolean

Summary

[DEPRECATED: use cma:generate-config and cma:apply-config instead.]

Checks to see if the named package can be installed. Returns true if the package is installable and false if the package is not installable.

Parameters
pkgname The package to check.

Example

xquery version "1.0-ml";

import module namespace pkg = "http://marklogic.com/manage/package" 
   at "/MarkLogic/manage/package/package.xqy";

pkg:installable("mypackage")

  => Returns 'true' if "mypackage" can be installed.  Otherwise returns 'false.' 
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy