first-childAdded by IBM on August 8, 2013 | Version 1 (Original)
|An extension to XForms 1.1, this function returns the first child element of a given element.
Table 1. first-child parameters
|node||XPath||The element whose first child element is obtained.|
The first 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 "*", 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.