This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Generic Looping


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]