Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2004

Tip: Looking for answers? Try searching our database.

how can I say in xpath, get me all the nodes in list 2 that are not in list 1 using k as key ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Tarazi - 27 Nov 2004 22:24 GMT
Hi



I am modifying an xslt manually (for InfoPath), and I am trying to figure out how to do the following:



I have a document with 2 lists of nodes, List A and List B, both have the same structure, and both have a node that is used as a key

List1

k = 1

a = "abc"

b = "abc"



k = 2

a = "cxd"

b = "cxd"



List 2

k = 1

a = "abc"

b = "abc"



k = 3

a = "cfg"

b = "cfg"





how can I say in xpath, get me all the nodes in list 2 that are not in list 1 using k as key



Thanks
G. Tarazi - 29 Nov 2004 13:27 GMT
Actually I found the answer my self, it can happen with 2 queries, the first one to perform the filter (for each) and the second one just a normal if statement with the count command to make sure the count of the similar elements is 0

 Hi

 

 I am modifying an xslt manually (for InfoPath), and I am trying to figure out how to do the following:

 

 I have a document with 2 lists of nodes, List A and List B, both have the same structure, and both have a node that is used as a key

 List1

 k = 1

 a = "abc"

 b = "abc"

 

 k = 2

 a = "cxd"

 b = "cxd"

 

 List 2

 k = 1

 a = "abc"

 b = "abc"

 

 k = 3

 a = "cfg"

 b = "cfg"

 

 

 how can I say in xpath, get me all the nodes in list 2 that are not in list 1 using k as key

 

 Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.