plugin:enumerate( $uri as xs:string, [$scope as xs:string] ) as map:map
This function enumerates functions implementing all capabilities supported by the given plugin. It returns a map, keyed on the capabilities.
xquery version "1.0-ml"; import module namespace plugin = "http://marklogic.com/extension/plugin" at "/MarkLogic/plugin/plugin.xqy"; plugin:enumerate("plugin:collector-filescan.xqy") (: Returns the capabilities map for the filescan collector. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.