XSLT transform recursive depth error - StackOverflowError

I have an XSLT transform that is throwing a StackOverflowError.

I have determined that this is caused by a recursive function within the XSLT.

I also found this error in Stylus Studio during testing. But I could set the recursive depth in Stylus Studio to resolve.

I don’t see any documentation on a recursive depth setting within webMethods (WmXSLT).

Can someone point me to this setting or discuss a workaround?

Thanks in advance.

Ramesh