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

Ihe Onwuka ihe.onwuka at gmail.com
Tue Apr 8 09:00:51 PDT 2014


On Tue, Apr 8, 2014 at 4:59 PM, David Carlisle <davidc at nag.co.uk> wrote:
> 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.
>

The answer I got tallies with what Mike Sokolov said I would get.


More information about the talk mailing list