functx:last-node

The XML node in a sequence that is last in document order

Description

The functx:last-node function returns the node in the sequence that appears last in document order (regardless of their order in the sequence). If nodes in the sequence are from multiple documents, the choice of which document is last is implementation-dependent.

Parameters

Description

nodes:node()

the sequence of nodes

Examples

XPath

Results

functx:last-node($in-xml//fName)

<fName>John</fName>

functx:last-node(($in-xml//lName, $in-xml//fName))

<lName>Doe</lName>

See Also