Loading TOC...

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"
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.