SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# saxon:has-same-nodes()

saxon:has-same-nodes($nodes-1 as node()*, $nodes-2 as node()*) ==> xs:boolean

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 the "=" operator, which tests whether there is a pair of nodes with the same string-value, and the deep-equal() function, which compares nodes pairwise but by content.

Next