Subject:Maximum recursion depth Author:Yitzhak Khabinsky Date:27 Feb 2004 11:50 AM
I am trying to convert a text file into an XML file. To do that I need to use a recursion in the XSLT.
MSXML parser v.4.0 processes my XSLT fine.
But I need to debug XSLT so I switched to internal processor. Unfortunately, Stylus Studio complains that maximum recursion depth has exceeded.
My SS version is 5.1.173g.
By the way, it looks like your latest download link still points to the 5.1.173g instead of 5.1.173h file.
I manually set the following options under Tools/Options/XSLT settings:
Max recursion level - high (maximum right)
Allow stack size - 64 MB.
Subject:Re: Maximum recursion depth Author:Minollo I. Date:27 Feb 2004 01:02 PM
The maximum recursion level tends to set very conservative limits; you can
run the stylesheet you have attached using the internal processor if you
manually set the "XSLT Editor: Option: RecursionLevel" value in the
"HCU\Software\eXcelon Corporation\Stylus Studio\Plugin Settings" registry
key to at least 10000. Stack size set to 64MB is fine. Note that if anytime
you bring up the "XSLT settings" option page in Stylus, that will reset the
recursion level to 500. We are reviewing if it's advisable to relax a bit
the constraints set by the UI.
You can also try using Saxon or XalanJ as the processor set in your
Scenario settings; I did try Saxon and it worked fine against your
stylesheet. Debugging is enabled when using Saxon or XalanJ (or XSLT .NET).
Subject:Re: Maximum recursion depth Author:Minollo I. Date:27 Feb 2004 03:55 PM
>...
>P.S. Did you have a chance to look at the download link for the latest
>version 173.h
>It looks like that the link still points to the v.5.1.173.g
I've tried it, and I got 173h. It's not infrequent that the browser or the
proxy caches the download; you can try flushing the temporary files in your
client browser.
Subject:RE: Maximum recursion depth Author:Ivan Pedruzzi Date:27 Feb 2004 04:17 PM
> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager@edn.exln.com]
> Sent: Friday, February 27, 2004 3:39 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: Re: Maximum recursion depth
>
> From: "Yitzhak Khabinsky"
>
> I tried to use MSXML .NET version of the parser. My machine has .NET v.1.1
>
> SS debugger doesn't stop at the breakpoint!
Hi Yitzhak,
preserve-space seems to interfere with the .NET debugger if you comment the instruction below you should hit the breakpoint.
In any case the .NET processor doesn't seem to be able to handle this stylesheet.
Did you try Minollo's suggestion?
Stylus processor seems to be working with stack set to 64MB.
Subject:RE: Maximum recursion depth Author:Yitzhak Khabinsky Date:27 Feb 2004 04:52 PM
Thanks a lot for such great support.
It seems that almost everything is working now.
1) Registry fix.
I applied it to the following entry:
XSLT Editor: Option: RecursionLevel to 10000
Internal processor is working now.
2) Commenting out xsl:preserve-space helped debugger to stop at break points for the XSLT .NET
And you are right, XSLT .NET can not process entire XML file.