
dls:document-add-properties( $uri as xs:string, $properties as element()* ) as empty-sequence()
This function adds the specified properties to any existing properties associated with the named document.
Note that properties are not maintained in version history.
| Parameters | |
|---|---|
| uri | The URI of the document. | 
| properties | The properties to add. | 
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-add-properties(
              "/foo/bar/baz.xml", 
              (<priority>1</priority>,
               <status>unedited</status>))
  (: The <priority> and <status> properties are added to the 'baz.xml' document. :)