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: How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'


"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


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