saxon:has-same-nodes

Tests whether two sequences contain the same nodes.

has-same-nodes($arg1 as node()*, $arg2 as node()*) ➔ xs:boolean

Arguments

 

$arg1

node()*

The first sequence

 

$arg2

node()*

The second sequence

Result

xs:boolean

Details

Namespace: http://saxon.sf.net/

This function returns a boolean that is true if and only if $nodes-1 and $nodes-2 contain the same sequence of nodes in the same order. Nodes are compared by identity, not by content. Note this is quite different from both the "=" operator, which tests whether there is a pair of nodes with the same string-value, and also the deep-equal() function, which compares nodes pairwise but by content.