• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • MDN Plus
    • Overview

      More MDN. Your MDN.

    • FAQ

      Frequently asked questions about MDN Plus

  • Already a subscriber?
  • Get MDN Plus
  1. References
  2. EXSLT
  3. Sets (set)
  4. set:has-same-node()

In this article

  • Syntax
  • Specifications

Related Topics

  1. Common (exsl)
    1. Common (exsl)
    2. exsl:node-set()
    3. exsl:object-type()
  2. Math (math)
    1. Math (math)
    2. math:highest()
    3. math:lowest()
    4. math:max()
    5. math:min()
  3. Regular expressions (regexp)
    1. Regular expressions (regexp)
    2. regexp:match()
    3. regexp:replace()
    4. regexp:test()
  4. Sets (set)
    1. Sets (set)
    2. set:difference()
    3. set:distinct()
    4. set:has-same-node()
    5. set:intersection()
    6. set:leading()
    7. set:trailing()
  5. Strings (str)
    1. Strings (str)
    2. str:concat()
    3. str:split()
    4. str:tokenize()

In this article

  • Syntax
  • Specifications

set:has-same-node()

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

set:has-same-node() determines whether two node-sets have any nodes in common.

Syntax

set:has-same-node(nodeSet1, nodeSet2)

Parameters

nodeSet1

The first node set to check.

nodeSet2

The second node set to check.

Returns

true if the two node-sets have any nodes in common; otherwise false.

Specifications

EXSLT - SET:HAS-SAME-NODE

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 27, 2022, by MDN contributors

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub

MDN

  • About
  • Hacks Blog
  • Careers

Support

  • Product help
  • Report a page issue
  • Report a site issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2022 by individual mozilla.org contributors. Content available under a Creative Commons license.