fn:deep-equal

Compares two sequences for deep equality; string values are compared using the specified collation; nodes are compared for deep equality of names and content.

deep-equal($input1 as item()*, $input2 as item()*, $options as (xs:string | map(*))?:={}) ➔ xs:boolean

Arguments

 

$input1

item()*

The first value to be compared

 

$input2

item()*

The second value to be compared

 

$options

(xs:string | map(*))?

:= {}

The collation to be used whenever strings are compared

Result

xs:boolean

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

XPath 4.0 Functions and Operators

Saxon availability

Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions. Available for all platforms.

Notes on the Saxon implementation

The Saxon implementation handles maps as described for the deep-equal specification in the XSLT 3.0 Recommendation.

A Saxon-specific variant of this function is also available, with additional comparison options: see saxon:deep-equal.

See also:

saxon:deep-equal()