.. _functx_siblings:
===============
functx:siblings
===============
The siblings of an XML node
Description
~~~~~~~~~~~
The functx:siblings function returns the siblings of a node (but not the node
itself). This does not include attributes, but does include elements, text
nodes, processing instructions and comments.
.. list-table::
:widths: 40 60
:header-rows: 1
* - **Parameters**
- **Description**
* - node:node()
- the node
Examples
~~~~~~~~
.. list-table::
:widths: 50 50
:header-rows: 1
* - **XPath**
- **Results**
* - functx:siblings($in-xml/author[1])
- John Doe
* - functx:siblings($in-xml/author[1]/fName[2])
- Kate Jones
See Also
~~~~~~~~
.. toctree::
:titlesonly:
:glob:
* :ref:`functx_siblings-same-name`.