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: Mon, 11 Jan 2021 14:57:19 +0530
Message-ID: <CABuuzNOn_o=FCsahb35JKwuFXOtJGE5H7UDA3E404tLOS2tA9g@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: public-xslt-40@w3.org
On Mon, Jan 11, 2021 at 1:53 PM Michael Kay <mike@saxonica.com> wrote:

> There are several reasons this doesn't work.
>
> Firstly, an array is a singleton item, so <xsl:for-each select="$array">
> is already legal, and processes the array as a single item.
>
> Secondly, the context item is always either a single item or an error, so
> count(.) either returns 1 or fails.
>

Thanks, for the clarification.



-- 
Regards,
Mukul Gandhi
Received on Monday, 11 January 2021 09:27:48 UTC

This archive was generated by hypermail 2.4.0 : Monday, 11 January 2021 09:27:48 UTC