Re: [xsl] XSLT repetition constructs

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

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
helpful.

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