XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Yitzhak KhabinskySubject: 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.

My question is how I can debug my XSLT?


Unknown10013.zip

Postnext
Minollo I.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).

Thanks,
Minollo

Postnext
Yitzhak KhabinskySubject: Re: Maximum recursion depth
Author: Yitzhak Khabinsky
Date: 27 Feb 2004 03:11 PM
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!

Beyond that, MSXML .NET chokes. (Please see attachment)

MSXML .NET version is important for me. I will eventually use XSLT file in the .NET application.


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

Regards,
Yitzhak


ImageStackOverflow.gif

Postnext
Minollo I.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.

Minollo

Postnext
Yitzhak KhabinskySubject: Re: Maximum recursion depth
Author: Yitzhak Khabinsky
Date: 27 Feb 2004 04:11 PM
Thanks for the idea.
I downloaded and installed SS 5.1.173h version.

MSXML .NET processor still malfunctioning.
I am getting the same error as before.
(please see screenshot in the previous e-mail attachment)

Regards,
Yitzhak

Postnext
Ivan PedruzziSubject: 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.

Ivan


Posttop
Yitzhak KhabinskySubject: 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.

3) I have SS v. 5.1.173h installed.


Regards,
Yitzhak

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.