
dls:document-is-managed( $uri as xs:string ) as xs:boolean
This function determines whether or not the document at
  the specified URI is managed.  This function returns true if 
  the document at the URI is either a managed document or a numbered version 
  of a managed document. Otherwise false is returned.
  
| Parameters | |
|---|---|
| uri | The URI of the document to test. | 
dls-user role is required to run 
    this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
    
  xquery version "1.0-ml";
  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";
  dls:document-is-managed("/foo/bar/baz.xml")
  (: Returns true if document is managed.  Otherwise false. :)