[xsl] Re: How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'

Subject: [xsl] Re: How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 14 Mar 2002 01:14:50 -0800 (PST)
"Rene de Vries" <RdVries at PCL-HaGe dot nl> wrote: 

> Hi,
> 
> Can you tell me how to simulate a replicate-function in xsl:
> replicate('abc',3) -> 'abcabcabc'
> 
> Greetings René

When you don't know in advance the maximum value of desired
repetitions,
then the following algorithm is the most efficient:

http://sources.redhat.com/ml/xsl-list/2001-07/msg01040.html


Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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


Current Thread