[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Need help with XSLT tokenize

Subject: Re: 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
Re:  Need help with XSLT tokenize
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.