xsl-list
[Top] [All Lists]

Re: [xsl] Need help with XSLT tokenize

2020-08-13 09:22:39
On Thu, 2020-08-13 at 10:27 +0000, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de
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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>