Sequence types

A sequence is an ordered list of items.

All sequences match the sequence type item*.

A sequence type is made of an item type followed by an occurrence indicator:


JSONiq mostly follows the W3C standard regarding sequence types, the main difference in the syntax that the empty sequence type is simply (), rather than empty-sequence(). The detailed specification is found here.

Figure 4. SequenceType