This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 14 Mar 2002 01:14:50 -0800 (PST)
- Subject: [xsl] Re: How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'
- Reply-to: xsl-list at lists dot mulberrytech dot com
"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