Creating arrays

The new xsl:array instruction can be used to create an array. The contents of the array are formed from the sequence returned by the contained sequence constructor.

There are two forms of the instruction.

Note: the implementation of xsl:array and xsl:array-member in Saxon 12.x reflects an earlier draft of the XSLT 4.0 specification. The current (April 2025) draft has moved on from this.