MarkLogic 9 Product Documentation
alert:action-set-name

alert:action-set-name(
   $action as element(alert:action),
   $name as xs:string
) as element(alert:action)

Summary

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.

Example

  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"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy