alert:action-set-options( $action as element(alert:action), $options as element(alert:options) ) as element(alert:action)
This function returns the action with the options of the action updated.
Parameters | |
---|---|
$action | The representation of an action. |
$options | The options to set for the given action. |
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; let $action := alert:action-set-options( $action, <alert:options><sms:provider name="Verizon" domain="vtext.com"/> </alert:options> ) => Returns the XML representation of the action with the options updated to <alert:options> <myns:provider>Verizon</myns:provider> </alert:options>