.. _functx_follows-not-descendant: ============================= functx:follows-not-descendant ============================= Whether an XML node follows another without being its descendant Description ~~~~~~~~~~~ The functx:follows-not-descendant function returns a boolean value indicating whether $a follows $b without being its descendant. If either argument is the empty sequence the function returns false. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - a:node() - the first node * - b:node() - the second node Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:follows-not-descendant($in-xml//author[2],$in-xml//author[1]) - true * - functx:follows-not-descendant($in-xml//author[1]/fName, $in-xml//author[1]) - false * - functx:follows-not-descendant($in-xml//author[1],$in-xml//author[2]) - false See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_precedes-not-ancestor`. * :ref:`functx_last-node`.