Loading TOC...

alert:action-set-module

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

Summary

This function returns the action with the module of the action updated.

Parameters
$action The representation of an action.
module The module 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-module($action, "/modules/sms.xqy")
  => Returns the XML representation of the action with the module 
     updated to "/modules/sms.xqy"
  

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