| 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 | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] xsl:with-param, Jeni Tennison | Thread | [xsl] dealing with languages, Laura Jenkins | 
| Re: [xsl] How can I simulate a repl, Christopher R. Maden | Date | [xsl] xsl:with-param, Corneanu Dan | 
| Month |