W3C home > Mailing lists > Public > public-xslt-40@w3.org > January 2021

Re: Processiing arrays in XSLT 4

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Tue, 12 Jan 2021 15:47:43 +0530
Message-ID: <CABuuzNM2B-f8Nh3a1CdQCP7y2CuTt=E9hDEAU_tdJD4aSi1OSw@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: public-xslt-40@w3.org
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.

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

This archive was generated by hypermail 2.4.0 : Tuesday, 12 January 2021 10:18:15 UTC