.. _functx_is-node-among-descendants-deep-equal: =========================================== functx:is-node-among-descendants-deep-equal =========================================== Description ~~~~~~~~~~~ The functx:is-node-among-descendants-deep-equal function returns a boolean value indicating whether or not a node has the same contents as a node in a sequence, or one of the descendants of a node in the sequence. It determines whether the nodes have the same content using the built-in fn:deep-equal function. If $node or $seq is the empty sequence, it returns false. For a similar function based on the identity of a node rather than its contents, see functx:is-node-among-descendants. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - node:node() - the node to test * - seq:node() - the sequence of nodes to search Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:is-node-among-descendants-deep-equal($in-xml/author[1],$in-xml) - true * - functx:is-node-among-descendants-deep-equal($anAuthor,$in-xml) - true * - functx:is-node-among-descendants-deep-equal($anotherAuthor,$in-xml) - false * - functx:is-node-among-descendants-deep-equal($anAuthor,$in-xml/author) - true See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_is-node-among-descendants`. * :ref:`functx_is-node-in-sequence-deep-equal`. * :ref:`deep-equal`.