Re: Processiing arrays in XSLT 4

> 
> Why not just:
> 
> <xsl:array select ="{expressionProducingAnArray}"/>  
> 


Constructing an array when you need to invoke xsl:apply-templates as part of the array construction is very inconvenient at present, and that's a common requirement when transforming XML to JSON.

Also, there's no easy way in XPath of constructing a completely general array: the [...] constructor only works if the size of the array is known statically, and the array{...} constructor only works if each member of the array is a singleton.

Michael Kay
Saxonica

Received on Saturday, 9 January 2021 17:39:24 UTC