This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: big recursive function
- From: jon wa <jonni at gmx dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 28 Nov 2001 12:55:07 +0100 (MET)
- Subject: Re: [xsl] big recursive function
- References: <Pine.LNX.4.21.0111281146470.7577-100000@algol.codix.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> On Wed, 28 Nov 2001, jon wa wrote:
>
> >
> > my problem then comes when i have a big pre section to process. the
> function
> > recurses so many times that my parser (gnome libxslt) throws an error.
> it
> > seems as tho i can increase the depth that it will recurse but i haven't
> found
> > a way to do it with the perl interface i'm using.
>
> I don't know about rewriting the function, but if you're using
> XML::LibXSLT as your perl interface,
>
> XML::LibXSLT->max_depth(4000);
>
> works fine for me (and deep recursion doesnt seem to impact performance as
> much as you might expect, either).
>
Doh! sorry, i should have seen this earlier. thanks graham!
--
Sent through GMX FreeMail - http://www.gmx.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list