xsl-list
[Top] [All Lists]

Re: [xsl] XSLT repetition constructs

2019-03-05 17:37:02
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(_at_)fromoldbooks(_dot_)org
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

On Tue, 2019-03-05 at 20:02 +0000, Michael Kay mike(_at_)saxonica(_dot_)com 
wrote:
 I don’t 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
--~----------------------------------------------------------------
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>