Subject: are multiple predicates same as boolean and
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Fri, 21 Nov 2008 19:04:07 +0530
|
Hi all,
Supposing I write following XPath expressions,
1) X[c1][c2] or specifying generically, X[c1][c2][]...[cn]
2) X[c1 and c2] or specifying generically, X[c1 and c2 ... and cn]
c1, c2 etc. are boolean expressions.
are the two forms (1 & 2) above exactly equivalent (i.e., will they
return the same nodeset/sequence)?. I think yes ... but just wanted to
confirm with the list.
if 1 & 2 are exactly equivalent, then what could be the rule of thumb
for using which form in certain scenarios?
--
Regards,
Mukul Gandhi
|