Loading TOC...

MarkLogic 10 Product Documentation
trgr:any-property-content

trgr:any-property-content() as element(trgr:any-property-content)

Summary

Returns the XML representation of an all-properties part to a triggering event, usable as the content parameter of a trigger event constructor such as trgr:trigger-data-event .

Usage Notes

Adding, changing or removing any document property matches this event part.

Example

xquery version "1.0-ml";
import module namespace trgr="http://marklogic.com/xdmp/triggers" at "/MarkLogic/triggers.xqy";

trgr:trigger-data-event(
  trgr:directory-scope("/myDir/", "1"),
  trgr:any-property-content(),
  trgr:post-commit())

  => A property modification trigger event that can
     be used to create a trigger which fires whenever any
     property is added, changed or removed on a document 
     in the /myDir/ directory.
  

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