Path: blob/main/files/en-us/web/exslt/set/intersection/index.md
6532 views
------{{XSLTRef}}{{QuickLinksWithSubpages("/en-US/docs/Web/EXSLT")}}
set:intersection() returns the intersection of two node-sets. In other words, it returns a node-set containing all the nodes that exist in both nodeSet1 and nodeSet2.
Syntax
Arguments
nodeSet1: The first node-set.
nodeSet2: The second node-set.
Returns
A node-set containing the nodes that existed in both nodeSet1 and in nodeSet2.