last-childAdded by IBM on August 8, 2013 | Version 1 (Original)
|An extension to XForms 1.1, this function returns the last child element of a given element.
Table 1. last-child parameters
|node||XPath||The element whose last child element is obtained.|
The last child element, or empty nodeset if the given node has no child elements.
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 "*[last()]", except that the function operates in constant time regardless of the number of children. Use this function with care; unless the axis is large, an XPath axis navigation is more efficient than a function call.