This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: reverse() template (Was: RE: XSL output method="text" and indent preservation)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] reverse() template (Was: RE: XSL output method="text" and indent preservation)
- From: Francis Norton <francis at redrice dot com>
- Date: Sat, 04 Aug 2001 07:46:03 +0100
- CC: Jarno dot Elovirta at nokia dot com, selva at india dot hp dot com
- References: <20010804045239.22750.qmail@web14510.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Dimitre Novatchev wrote:
>
>
> Here are two templates for reversing a string. The first is much faster and more
> straightforward, the second will almost never cause an XSLT processor to crash due
> to deep recursive processing (it has a maximum recursion depth of only 20 for
> reversing a 1MB long string):
>
A logarithmic decrease in stack depth, very nice. How great is the
difference in performance?
Francis.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list