Sequences

The <xsl:sequence> instruction is used to construct sequences of nodes or atomic values (or both).

  • <xsl:sequence select='(1,2,3,4)'/>

    returns a sequence of integers.

  • <xsl:sequence select='(1,2,3,4)' as="xs:double"/>

    returns a sequence of doubles.