Application Integration
- Application Integration
- All Products
fn:count(arg)
Argument | Required/Optional | Description |
|---|---|---|
arg
| Required | The sequence of items to count. |
<library> <book>Book A</book> <book>Book B</book> <book>Book C</book> </library>
The output islet $books := doc("library.xml")/library/book return fn:count($books)
|
|
|---|---|
fn:count( (1, 2, 3) ) | 3 |
fn:count( (1, 2, 3, () ) ) | 3 |
fn:count( (1, 2, 3, 1, 2 ) ) | 5 |
fn:count( () ) | 0 |