Activate Multiple Functions for Actions using XPath Expressions
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.
Three special XPath extension functions are provided:
oxy:allows-child-element()
- You can 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()
- You can 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()
- You can use this function to get the currently selected element.