I'm trying to figure out which is more efficient (xpath or xquery select), so if someone has knowledge on this I'd appreciate any input. This may or may not be specific to the implementation of BaseX.
For example, the following queries return the same thing, but which one is faster? Does basex treat them the same way? 1 uses xquery select, 2 uses xpath 1. for $x in doc('test')/* where $x/node="value" return $x OR 2. for $x in doc('test')/*[node="value"] return $x
Thanks. -tjw