# EXSLT - set:has-same-node - Implementer Page

Version: 1 Status: stable User Page: index.html XML Definition: set.has-same-node.xml Function Package: set.has-same-node.zip #### Function Syntax
    boolean set:has-same-node(node-set, node-set)
#### Template Syntax
    <xsl:call-template name="set:has-same-node">
       <xsl:with-param name="nodes" select="node-set" />
       <xsl:with-param name="node" select="node-set" />
    </xsl:call-template>
The `set:has-same-node` function returns true if the node set passed as the first argument shares any nodes with the node set passed as the second argument. If there are no nodes that are in both node sets, then it returns false. An implementation of this extension function in the EXSLT set namespace must conform to the behaviour described in this document. ## Implementations Built-in support for `set:has-same-node` is available in the following XSLT processors:
Processor | Processor Version | Implemented Version
--- | --- | ---
4XSLT, from 4Suite. | 0.12.0a3 | 1
SAXON from Michael Kay | 6.3 | 1
jd.xslt from Johannes Döbler | 1.0.9 | 1
libxslt from Daniel Veillard; implementation by Thomas Broyer | 1.0.19 | 1
Xalan-J from Apache | 2.4.D1 | 1
The following implementations of `set:has-same-node` are available:
Language | Implemented Version | Creator | Date | Download
--- | --- | --- | --- | ---
XSLT Template | 1 | Jeni Tennison | 2001-03-28 | set.has-same-node.template.xsl
EXSLT Function | 1 | Jeni Tennison | 2001-03-28 | set.has-same-node.function.xsl
## Use Cases Use Case Package: set.has-same-node.use-cases.zip The following use cases illustrate the functionality of `set:has-same-node`.
Details | Calling Stylesheet | XML Data | Expected Result | Category | Template
--- | --- | --- | --- | --- | ---
1 | set.has-same-node.1.xsl | set.has-same-node.data.1.xml | set.has-same-node.result.1.xml | example | N
## Change History Submitted: 2001-03-28 Creator: Jeni Tennison(http://www.jenitennison.com) Returns true if the first node set contains a node in the second node set.
Version | Modified | By | Details
--- | --- | --- | ---
1.1 | 2001-05-22 | Jeni Tennison | Added vendor implementations in Saxon and 4XSLT Changed status to stable
1.2 | 2001-06-11 | Jeni Tennison | Added vendor implementation in jd.xslt.
1.3 | 2001-08-23 | Jeni Tennison | Added vendor implementation in libxslt.
1.4 | 2002-08-20 | Craig Stewart | Added Xalan-J implementation to the list.
1.5 | 2002-11-12 | Craig Stewart | Updated 4XSLT version to 0.12.0a3.
## Copyright This material is in the public domain.

http://www.exslt.org/set/functions/has-same-node/set.has-same-node.html last modified 2002-11-12