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): $p[count($q|.)=count($q)] On the other hand, a value-based intersection can be done as $p[.=$q] Michael Kay http://www.saxonica.com/ > -----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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] intersect on xpath ver 1., Dimitre Novatchev | Thread | [xsl] Qualified variable names, JamesXslt Smith |
Re: [xsl] intersect on xpath ver 1., Dimitre Novatchev | Date | Re: [xsl] XPath "//", speed, and Sa, Tony Graham |
Month |