[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: intersect on xpath ver 1.0
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|