Loading TOC...

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.' 
  

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