From: Matt Adams <mattad@em...>  20041002 15:52:02

I want to find out of a set of nodes ($a) differs from a second node set = ($b). If there are nodes which do not exist in the counterpart they should appe= ar=20 in the resultset. As a first idea I thought of using the new XSLT 2.0 function "except" But in all documents I have seen so far except seems to be a "minus" rath= er than a "find difference" Assume the following node set examples: $a=3D 1,2,3 =20 $b=3D 2,3,5 $a minus $b =3D 1 $a differences to $b =3D 1,5=20 So what kind of role plays "except"? If it is a "minus" how do I find out differences in node sets? Matt =20 ___________________________________________________________ Signup for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
From: Matt Adams <mattad@em...>  20041002 15:52:02

I want to find out of a set of nodes ($a) differs from a second node set = ($b). If there are nodes which do not exist in the counterpart they should appe= ar=20 in the resultset. As a first idea I thought of using the new XSLT 2.0 function "except" But in all documents I have seen so far except seems to be a "minus" rath= er than a "find difference" Assume the following node set examples: $a=3D 1,2,3 =20 $b=3D 2,3,5 $a minus $b =3D 1 $a differences to $b =3D 1,5=20 So what kind of role plays "except"? If it is a "minus" how do I find out differences in node sets? Matt =20 ___________________________________________________________ Signup for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm 
From: Michael Kay <mhk@mh...>  20041002 17:30:57

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 
From: Michael Kay <mhk@mh...>  20041002 17:33:56

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 
From: Michael Kay <mhk@mh...>  20041002 17:44:59

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 
From: Michael Kay <mhk@mh...>  20041002 18:25:02

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 
From: Michael Kay <mhk@mh...>  20041002 23:38:31

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 
From: Michael Kay <mhk@mh...>  20041003 01:39:01

except implements a mathematical set difference operation: $a except $b returns all nodes that are in $a excluding those that are also in $b. So it is asymmetric, as you observe. If you want all the nodes that are in one set and not both you could do ($a union $b) except ($a intersection $b) or ($a except $b) union ($b except $a) Michael Kay http://www.saxonica.com/ > Original Message > From: saxonhelpadmin@... > [mailto:saxonhelpadmin@...] On Behalf Of > Matt Adams > Sent: 02 October 2004 16:50 > To: saxonhelp@... > Subject: [saxon] Is ($a except $b) the same as ($b except $a) ??? > > I want to find out of a set of nodes ($a) differs from a > second node set ($b). > If there are nodes which do not exist in the counterpart they > should appear > in the resultset. > > As a first idea I thought of using the new XSLT 2.0 function "except" > But in all documents I have seen so far except seems to be a > "minus" rather than > a "find difference" > > Assume the following node set examples: > > $a= 1,2,3 > $b= 2,3,5 > > $a minus $b = 1 > $a differences to $b = 1,5 > > So what kind of role plays "except"? > If it is a "minus" how do I find out differences in node sets? > > Matt >  > ___________________________________________________________ > Signup for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm > > > >  > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of > them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > saxonhelp mailing list > saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp > 