Re: Processiing arrays in XSLT 4

On Tue, Jan 12, 2021 at 2:19 PM Michael Kay <mike@saxonica.com> wrote:

(a) iterating using an explicit index. This is of course possible today
> using <xsl:for-each select="1 to N"> or <xsl:iterate select="1 to N">;
> within the "loop" the index is available both as "." and as "position()".
>

Thanks, for reminding me about this. I believe, this could be used to
iterate over an array as well.


> Other languages have all moved in the direction of allowing iteration over
> collections without explicit indexing, and it feels like the right thing to
> do.
>

Definitely. This sound right to me as well.



-- 
Regards,
Mukul Gandhi

Received on Tuesday, 12 January 2021 10:18:14 UTC