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

Re: Processiing arrays in XSLT 4

From: Michael Kay <mike@saxonica.com>
Date: Sat, 9 Jan 2021 23:18:22 +0000
Cc: "Liam R. E. Quin" <liam@fromoldbooks.org>, public-xslt-40@w3.org
Message-Id: <2578EDA3-845E-45A1-BFDE-896E31010155@saxonica.com>
To: Dimitre Novatchev <dnovatchev@gmail.com>
> Surely, there is even no need to iterate at all, if we have the syntax below:
> <xsl:array member-source="*"  member-generator="my:mapHistory"/> 
> Here, the XSLT processor is calling my:mapHistory() once for every item in member-source, and the result of the call is the corresponding, Nth member of the array. 

This feels very counter-intuitive to me. Perhaps you could flesh out the use case I supplied to see what the full solution looks like.

Michael Kay
Received on Saturday, 9 January 2021 23:18:39 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 January 2021 23:18:41 UTC