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

Re: XSLT repetition constructs

Subject: Re: XSLT repetition constructs
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Mar 2019 23:36:57 -0000
Re:  XSLT repetition constructs

I have used xsl:iterate for processing proxies or visitors, i.e. as
accumulators, as suggested by John Lumley: it seems to work well. I
used to do this recursively but, as Mike says, debugging. It's the
person looking at it the first time -- or who has forgotten all about
it -- that I worry about most.

As for "repetition", I like to tell students that they should try
thinking of XSLT entirely spatially - the tree-to-tree mapping
described by Liam -- rather than temporally. So not "this happens,
then this happens", but "there is this, then inside it there is this,
while next to it there is that", and the transformation itself happens
all at once. This hardly makes sense to anybody, but for a few, it is

So, not repetition, except in the sense there is repetition in the
stairs on a staircase. You repeat stepping, but each step is
different, and they can be seen all at once if you look.

Cheers, Wendell

On Tue, Mar 5, 2019 at 4:34 PM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 2019-03-05 at 20:02 +0000, Michael Kay mike@xxxxxxxxxxxx wrote:
> > >  I donbt have enough experience
> > > with using xs:iterate in larger stylesheets
> >
> > xsl:iterate has two main applications
> Thank you, that's very helpful.
> --
> Liam Quin, https://www.delightfulcomputing.com/
> Available for XML/Document/Information Architecture/XSLT/
> XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
> Web slave for vintage clipart http://www.fromoldbooks.org/

Wendell Piez | wendellpiez.com | wendell -at- nist -dot- gov
pellucidliterature.org | github.com/wendellpiez |
gitlab.coko.foundation/wendell  - pausepress.org

Current Thread


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.
First Name
Last Name
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.