I am trying to find the intersection of two node sets, thus the nodes
that exist in both node sets. According to various sites it is possible
with the Kaysian (after Michael Kay) expression, $ns1[count(. | $ns2) =
count($ns2)]

However in IDM it seems that it is not working, log below.

Loopback - Organization : Action:
do-set-local-variable("ns1",scope="policy",arg-node-set("a"+"b"+"c")).
Loopback - Organization : arg-node-set("a"+"b"+"c")
Loopback - Organization : token-text("a")
Loopback - Organization : Token Value: "a".
Loopback - Organization : token-text("b")
Loopback - Organization : Token Value: "b".
Loopback - Organization : token-text("c")
Loopback - Organization : Token Value: "c".
Loopback - Organization : Arg Value: {"a","b","c"}.
Loopback - Organization : Action:
do-set-local-variable("ns2",scope="policy",arg-node-set("1"+"2"+"a"+"d"+"c"+"h")).
Loopback - Organization : arg-node-set("1"+"2"+"a"+"d"+"c"+"h")
Loopback - Organization : token-text("1")
Loopback - Organization : Token Value: "1".
Loopback - Organization : token-text("2")
Loopback - Organization : Token Value: "2".
Loopback - Organization : token-text("a")
Loopback - Organization : Token Value: "a".
Loopback - Organization : token-text("d")
Loopback - Organization : Token Value: "d".
Loopback - Organization : token-text("c")
Loopback - Organization : Token Value: "c".
Loopback - Organization : token-text("h")
Loopback - Organization : Token Value: "h".
Loopback - Organization : Arg Value:
{"1","2","a","d","c","h"}.
Loopback - Organization : Action:
do-for-each(arg-node-set(token-xpath("$ns1[count(. | $ns2) =
count($ns2)]"))).
Loopback - Organization : arg-node-set(token-xpath("$ns1[count(.
| $ns2) = count($ns2)]"))
Loopback - Organization : token-xpath("$ns1[count(. | $ns2) =
count($ns2)]")
Loopback - Organization : Token Value: {}.
Loopback - Organization : Arg Value: {}.


--
NickyVermaak
------------------------------------------------------------------------
NickyVermaak's Profile: http://forums.novell.com/member.php?userid=7462
View this thread: http://forums.novell.com/showthread.php?t=432260