[xquery-talk] A walk down Sesame St - counting for simpletons

David Carlisle davidc at nag.co.uk
Tue Apr 8 08:59:15 PDT 2014


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



More information about the talk mailing list