XPath/XQuery one-or-more function

Summary

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 if $arg is an empty sequence.