An Author mode action can have multiple functions, each function invoking an Author mode operation with certain configured parameters. Each function of an action has an XPath 2.0 expression for activating it.
For each function of an action, the application will check if the XPath expression is fulfilled (when it returns a not empty nodes set or a true result). If it is fulfilled, the operation defined in the function will be executed.
Two special XPath extension functions are provided: the oxy:allows-child-element() function that you can use to check whether an element is valid in the current context, considering the associated schema and the oxy:current-selected-element() function that you can use to get the currently selected element.