xsl-list
[Top] [All Lists]

RE: [xsl] intersect on xpath ver 1.0

2008-11-03 09:07:09
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(_at_)rocketmail(_dot_)com] 
Sent: 03 November 2008 13:39
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>