[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: what am I doing wrong with except and intersect?

Subject: Re: what am I doing wrong with except and intersect?
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Sun, 20 Mar 2011 13:05:16 +0000
Re:  what am I doing wrong with except and intersect?
On 20 March 2011 12:48, Alex Muir <alex.g.muir@xxxxxxxxx> wrote:
> Hi,
>
> I'm confused as to why I'm not able to get intersect and except to
> work with the following node sets.

intersect and except are based on node identity, not value, so the
nodes involved have to be the actual same nodes, eg return the same id
from generate-id()

For value based comparisons, you want $a = $b, not($a = $b), $a[. != $b] etc

-- 
Andrew Welch
http://andrewjwelch.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.