[xquery-talk] A walk down Sesame St - counting for simpletons
David Carlisle
davidc at nag.co.uk
Tue Apr 8 09:05:59 PDT 2014
On 08/04/2014 17:00, Ihe Onwuka wrote:
> The answer I got tallies with what Mike Sokolov said I would get.
which system did you use?
count((collection('myColl')//elem,collection('myColl2')//elem))
should be the total
(collection('myColl')//elem,collection('myColl2')//elem))/count(.)
is a sequence of 1's. as you have a sequence of elem elements (however
constructed) followed by /count(.) and count(.) on an element is 1.
David
More information about the talk
mailing list