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