Activate Multiple Functions for Actions using XPath ExpressionsEdit online
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.
The following special XPath extension functions are provided:
- oxy:allows-child-element() - Use this function to check whether or not an element is valid child element in the current context, according to the associated schema.
- oxy:allows-global-element() - Use this function to check whether or not an element is a valid global element for the current framework, according to the associated schema.
- oxy:current-selected-element() - Use this function to get the currently selected element.
- oxy:is-required-element() - Use this function to check if the element returned by the given XPath expression is required (based on the rules declared in the schema).