On 08/04/2014 16:50, Ihe Onwuka wrote: >> (collection('myColl')//elem,collection('myColl2')//elem)/count(.) > ....but that my dear plonker..... does not return a stream of ones......Oops! It should, unless there is a bug somewhere, count() applied to an element node is only ever going to return 1. David