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($parameter1 as item()*, $parameter2 as item()*) ➔ xs:boolean

Arguments

 

$parameter1

item()*

The first value to be compared

 

$parameter2

item()*

The second value to be compared

Result

xs:boolean

deep-equal($parameter1 as item()*, $parameter2 as item()*, $collation as xs:string) ➔ xs:boolean

Arguments

 

$parameter1

item()*

The first value to be compared

 

$parameter2

item()*

The second value to be compared

 

$collation

xs:string

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 2.0 Functions and Operators

XPath 3.0 Functions and Operators

Notes on the Saxon implementation

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

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

See also:

saxon:deep-equal()