prev-siblingAdded by IBM on October 10, 2012 | Version 1 (Original)
|An extension to XForms 1.1, this function returns the preceding sibling element of a given element.
Table 1. prev-sibling parameters
|node||XPath||The element whose preceding sibling element is obtained.|
The preceding sibling element, or empty nodeset if the given node has no preceding sibling elements.
Deletes the second-to-last child element from within a list.
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 "preceding-sibling::*", except that the function operates in constant time regardless of the number of siblings. Use this function with care; unless the axis is large, an XPath axis navigation is more efficient than a function call.