The maximum recursion depth basically depends on the amount of stack space available in the Java VM, which is difficult to change.
You need to look at whether there is a way of coding this that takes advantage of tail recursion, to avoid consuming stack space.
Michael Kay

From: Cuzner Stephen P []
Sent: 23 February 2009 15:30
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: [saxon] Setting Maximum recursion depth

I'm running saxon in Stylus Studio using a custom stylesheet that uses the cals/oasis table module from the docbook stylesheet collection. My instance xml document has a huge table, not too many columns, but thousands of rows. When it gets to about 500 rows the process dies saying the the maximum recursion depth has been exceeded. Is this memory dependent, related to the jvm, or a setting/preference in saxon that I can change?