This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Generic Looping
- From: naha at ai dot mit dot edu
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 07 Feb 2002 17:13:13 -0500 (EST)
- Subject: Re: [xsl] Generic Looping
- References: <OFA09D8946.5CC85D52-ON85256B59.006D16C0@prci.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Quoting Corey_Haines@progressive.com:
> 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