sec:amp-exists( $namespace as xs:string, $local-name as xs:string, $document-uri as xs:string, $database as xs:unsignedLong ) as xs:boolean
This function returns true if the specified amp exists in the security database.
This function must be executed against the security database.
xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:amp-exists("my/namespace/uri", "my-function", "/my/module.xqy", xdmp:database("my-database"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.