[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Tricky transformation task


Subject: RE: [xsl] Tricky transformation task
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 11 Jul 2007 23:10:09 +0100

> - My xml's sometimes have more than a few thousand <LINK> 
> tags and after some magical threshold (a few hundred) the 
> stylesheet throws the following error:
>    "Too many nested apply-templates calls. The stylesheet may 
> be looping"

Which Saxon release are you on? The stylesheet looks tail-recursive to me so
I can't see any obvious reason why it should blow the stack. I may have
missed something of course. If you're on the 8.9.0.4, send me the data and
I'll look into it.

Don't run in a debugging/tracing environment because that switches tail-call
optimization off.

Michael Kay
http://www.saxonica.com/


Current Thread