
alert:rule-set-description( $rule as element(alert:rule), $description as xs:string ) as element(alert:rule)*
This function returns the rule with the description of the rule updated.
| Parameters | |
|---|---|
| $rule | The representation of a rule. |
| description | The description value to set for the given rule. |
xquery version "1.0-ml";
import module namespace alert = "http://marklogic.com/xdmp/alert"
at "/MarkLogic/alert.xqy";
alert:rule-set-description($rule, "Email when new article about DNA")
=> Returns the XML representation of the rule with the description
updated to "Email when new article about DNA"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.