Ben Aston
Ben Aston

Reputation: 55759

XQuery - does xs:string* denote a sequence?

In xquery, does xs:string* denote a sequence?

eg

xdmp:document-get-collections(
uri as xs:string
) as xs:string*

Upvotes: 0

Views: 1406

Answers (1)

Jens Erat
Jens Erat

Reputation: 38712

Yes, xs:string* denotes this function returns a string sequence with zero or an arbitrary number of string items. xs:string (without modifier) allows exactly one string item, xs:string? zero or one, xs:string+ at least one item.

Upvotes: 2

Related Questions