.. _functx_last-node:
================
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.
.. list-table::
:widths: 40 60
:header-rows: 1
* - **Parameters**
- **Description**
* - nodes:node()
- the sequence of nodes
Examples
~~~~~~~~
.. list-table::
:widths: 50 50
:header-rows: 1
* - **XPath**
- **Results**
* - functx:last-node($in-xml//fName)
- John
* - functx:last-node(($in-xml//lName, $in-xml//fName))
- Doe
See Also
~~~~~~~~
.. toctree::
:titlesonly:
:glob:
* :ref:`functx_follows-not-descendant`.
* :ref:`functx_first-node`.
* :ref:`last`.