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