Version 8.2.2
 —  XQuery 4 Reference Guide  —

fn:count

Return number of items in the argument's value.


Syntax

fn:count(item* $sequence) => unsignedInt

Top of page

Description

This aggregate function returns the number of items in the value of $sequence. If $sequence is the empty sequence, the function returns zero.

Top of page

Argument

$sequence

item value

Top of page

Example

Top of page