fn:one-or-more

Returns $arg if it contains one or more items. Otherwise, raises an error.

Signature

fn:one-or-more($arg as item()*) as item()+

Properties

This function is deterministic, context-independent, and focus-independent.

Rules

Except in error cases, the function returns $arg unchanged.

Error Conditions

A dynamic error is raised [ERRFORG0004] if $arg is an empty sequence.