How to get the common set of two xpath expressions -


can tell me please how common set of 2 xpath expressions. opposite of union (not |)

this well-known kayessian formula (identity) selecting intersection of 2 node-sets $ns1 , $ns2 :

$ns1[count(. | $ns2) = count($ns2)] 

this formula can used in versions of xpath, including 1.0. substitute $ns1 , $ns2 specific xpath expressions select 2 node-sets want intersect.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -