one-or-more function
The fn:one-or-more function returns its argument if the argument contains one or more items.
Syntax
- sequence-expression
- Any sequence, including the empty sequence.
Returned value
If sequence-expression contains one or more items, sequence-expression is returned. Otherwise, an error is returned.
Example
The following example uses the fn:one-or-more function to determine if the sequence in variable $seq contains one or more items.
let $seq := (5,10)
return fn:one-or-more($seq)(5,10) is returned.
