.. _functx_sequence-node-equal: ========================== functx:sequence-node-equal ========================== Whether two sequences contain the same XML nodes, in the same order Description ~~~~~~~~~~~ The functx:sequence-node-equal function returns a boolean value indicating whether the two arguments have the same nodes, in the same order. They are compared based on node identity, not their contents. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - seq1:node() - the first sequence of nodes * - seq2:node() - the second sequence of nodes Examples ~~~~~~~~ .. list-table:: :widths: 25 25 50 :header-rows: 1 * - **XPath** - **Results** - **Explanation** * - functx:sequence-node-equal($in-xml/author/*, $in-xml/*/*) - true - * - functx:sequence-node-equal($in-xml/author, ($in-xml/author[2],$in-xml/author[1])) - false - The order of the nodes is different. * - functx:sequence-node-equal($in-xml/author[1], $anAuthor) - false - Although the nodes have the same content, they are not the same node. .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:sequence-node-equal($in-xml/author/*, $in-xml/*/*) - true * - functx:sequence-node-equal($in-xml/author, ($in-xml/author[2],$in-xml/author[1])) - false * - functx:sequence-node-equal($in-xml/author[1], $anAuthor) - false See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_sequence-deep-equal`. * :ref:`functx_sequence-node-equal-any-order`.