MarkLogic 9 Product Documentation
alert:rule-set-name

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

Summary

This function returns the rule with the name of the rule updated.

Parameters
$rule The representation of a rule.
name The name value to set for the given rule.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:rule-set-name($rule, "nucleic acids email")
  => Returns the XML representation of the rule with the name updated
  to "nucleic acids email"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy