
alert:rule-set-options( $rule as element(alert:rule), $options as element(alert:options) ) as element(alert:rule)
This function returns the rule with the options of the rule updated.
| Parameters | |
|---|---|
| $rule | The representation of a rule. |
| $options | The options 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-options(
$rule,
<alert:options>
<alert:email-address>me@somedomain.com</alert:email-address>
</alert:options>)
=> Returns the XML representation of the rule with the options
updated to <alert:options>
<alert:email-address>me@somedomain.com</alert:email-address>
</alert:options>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.