parent-nodeAdded by IBM on October 10, 2012 | Version 1 (Original)
|An extension to XForms 1.1, this function returns the parent node of a given node.
Table 1. parent-node parameters
|node||XPath||The element whose parent node is obtained.|
The parent node, or empty nodeset if the given node has no parent.
Parent topic: XForms utility functions
- To use this function, you should include it in the functions attribute of the <xforms:model> tag.
- This function provides the same behavior as the expression "ancestor::*", except that the function operates in constant time regardless of the number of ancestors. Use this function with care; unless the axis is large, an XPath axis navigation is more efficient than a function call.