Re: [xsl] Generic Looping

Subject: Re: [xsl] Generic Looping
From: naha@xxxxxxxxxx
Date: Thu, 07 Feb 2002 17:13:13 -0500 (EST)
Quoting Corey_Haines@xxxxxxxxxxxxxxx:

> Hi,
> 
> As a little side project, I've been working on a generic looping
> template 
> which will produce a formatted xml tree based on a format input tree and
> 
> the list that is passed in. Basically, it is an XML equivalent of
> printf, 
> except it loops over a list. I was hoping that the gurus on the list
> could 
> point out any efficiencies or changes I could make to the XSL which
> would 
> make it work faster or more standard. I'm putting a description below.
> 
> I very much appreciate anybody's time that they can spend improving my 
> idea.

Depending on what you're after and how ambitous you're feeling, you
might consider taking a look at the CommonLisp FORMAT function

    http://www.xanalys.com/software_tools/reference/HyperSpec/Body/22_c.htm

It goes beyond printf, providing for iteration, conditional output 
and controlled indentation.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread