RE: [xsl] intersect on xpath ver 1.0

Subject: RE: [xsl] intersect on xpath ver 1.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 3 Nov 2008 14:06:33 -0000
First, can you describe more precisely what you mean by an "intersect set"
operation? I take it your inputs are node-sets, but are you comparing nodes
by identity or by value?

A number of products have extension functions for doing node-set
intersection (by node identity), but there's also a way it can be done in
standard XPath 1.0 (but maybe very inefficiently):


On the other hand, a value-based intersection can be done as


Michael Kay 

> -----Original Message-----
> From: Maria Jonas [mailto:makt@xxxxxxxxxxxxxx] 
> Sent: 03 November 2008 13:39
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] intersect on xpath ver 1.0
> I wonder if you have references to practical examples of 
> making an intersect set operation with xpath ver 1.0
> I read theory about this but I have problems in practice.
> All the best

Current Thread