saxon:array-member

The saxon:array-member instruction is used to create a single member for an array from a sequence of items.

Category: instruction
Content: sequence-constructor
Permitted parent elements: any XSLT element whose content model is sequence-constructor; any literal result element

Attributes

select?

expression

The contents of the array may be given either by an expression in the select attribute, or by expanding the sequence constructor contained in the saxon:array-member element.

Saxon availability

Requires Saxon-PE or Saxon-EE. Implemented since Saxon 9.8. Available for all platforms.

Details

The content model is the same as xsl:sequence: either a select attribute, or a contained sequence constructor, but not both. The effect is the same as evaluating the equivalent xsl:sequence instruction and then passing the result into a square array constructor.

The saxon:array-member instruction can be exported to a SEF file; the resulting SEF file can be used by SaxonJ but not by SaxonJS.

See also

saxon:array

saxon:array-member()

xsl:array-member