Subject: Re: [xsl] Need help with XSLT tokenize From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 13 Aug 2020 14:22:34 -0000 |
On Thu, 2020-08-13 at 10:27 +0000, Martin Honnen martin.honnen@xxxxxx wrote: > > What about XSLT 3's xsl:iterate? Isn't that, with its parameters that > can change on each iteration step, close to a procedural, sequential > loop? It's essentially little more than syntactic sugar for a recusive template - the only difference is that it's restricted to forms in which the processor can detect tail recursion. Thinking of it as a loop in which you can modify variables would e.g. suggest you can modify maps with it, but maps are immutable - you can only make a new map that reflects the changes you want.* Liam * vendor-specific extensions may break the abstraction and allow looping, modification of variables, and access to implementation data structures, but they are not part of the language and normally should be avoided where possible, for portability & future-proofing. -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Need help with XSLT token, Alan Painter alan.pa | Thread | Re: [xsl] Need help with XSLT token, Terry Badger terry_b |
Re: [xsl] Need help with XSLT token, Alan Painter alan.pa | Date | Re: [xsl] Need help with XSLT token, Dimitre Novatchev dn |
Month |