alert:find-matching-rules( $config-uri as xs:string, $doc as node() ) as element(alert:rule)*
Returns a list of all rules associated with
the specified config that match the specified document.
You must have the alert-admin
privilege
to call this function.
Parameters | |
---|---|
config-uri | The alerting configuration from which to match rules. |
doc | The document to match against. |
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; alert:find-matching-rules("http://myconfig/uri/", fn:doc("/mydocs/doc.xml"))