.. _functx_is-node-in-sequence: ========================== functx:is-node-in-sequence ========================== Whether an XML node is in a sequence, based on node identity Description ~~~~~~~~~~~ The functx:is-node-in-sequence function returns a boolean value indicating whether or not a node is in the specified sequence, based on node identity. It does not identify nodes that are descendants of nodes in the sequence; see functx:is-node-among-descendants for that purpose. If $node or $seq is the empty sequence, it returns false. Nodes are identified based on node identity, not their contents. For a similar function based on the contents of a node, see functx:is-node-in-sequence-deep-equal. .. 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-in-sequence($in-xml/price[1],$in-xml/price) - true * - functx:is-node-in-sequence($in-xml/price[1],$in-xml) - false * - functx:is-node-in-sequence($aPrice,$in-xml/price) - false See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_is-node-in-sequence-deep-equal`. * :ref:`functx_is-value-in-sequence`.