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
Post a Comment