alert:rule-get-description( $rule as element(alert:rule) ) as xs:string
This function returns the description of a given rule.
Parameters | |
---|---|
$rule | The representation of a rule. |
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; let $rule := alert:get-all-rules("http://acme.com/alert/message-board", cts:word-query("dna")) return alert:rule-get-description($rule) => "Email when new article about DNA"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.