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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steve YlvisakerSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Steve Ylvisaker
Date: 27 Feb 2006 01:23 PM
In order to take advantage of some 2.0 constructs for my index I downloaded the 2.0 version of Saxon and referenced it in my project scenario. Two issues came to light.

First I got a warning that I was running a 1.0 style sheet with a 2.0 processor. When I changed the stylesheet setting I got a fatal error saying that 2.0 is not supported. (I need to use 2.0 so I hope the software I purchased can support it)

With the above warning, processing takes a while before I get the "Maximum Recursion Depth Exceeded" error. I'm new with Stylus Studio and can't find any debug that will help me see where I am erroring out.

I'm guessing that I did something sloppy while running under 1.0 that 2.0 can't tolerate. Any insights?

Steve

Postnext
(Deleted User) Subject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: (Deleted User)
Date: 27 Feb 2006 01:43 PM
Hi, Steve. Stylus Studio does indeed support XSLT 2.0. By default, stylesheets are created as "version="1.0", but you can change it. The only caveat is that you have to use the Saxon processor if you are using an XSLT 2.0 stylesheet. What version of Stylus Studio are you using (Help > About Stylus Studio)?

As for the maximum recursion, you can set the level manually (Tools > Options > XSLT Editor > XSLT Settings); the initial setting is fairly conservative.

Finally, this thread might provide some information that is useful to you:

http://www.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2573

Hope this helps.

David Foster
Stylus Studio Team

Postnext
Steve YlvisakerSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Steve Ylvisaker
Date: 27 Feb 2006 02:00 PM
Thanks - that took care of my Recursion Depth Error - although I have to believe that I need to do some code clean up.

I am running build 501h. I just downloaded and installed.

Postnext
Tony LavinioSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Tony Lavinio
Date: 27 Feb 2006 11:54 PM
There is something, though, that isn't quite clear.
From where did you download Saxon?
And what did you do with it once you downloaded it?

Stylus Studio ships with Saxon 8 installed.
If you set your XSLT version to 2.0, it will prompt you to switch
to using Saxon. Otherwise, you can change it via the scenario
properties, on the 'Processor' tab.

Postnext
Steve YlvisakerSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Steve Ylvisaker
Date: 28 Feb 2006 09:33 AM
I'm not certain either. I downloaded a demo copy of Saxon 2.0 to use when I was working with a demo copy of Stylus Studio. Now that I have purchased Stylus Studio I'm not comfortable with the way it is behaving.

When I select Saxon 8 as my processor everything works fine. When I select the built in processor it doesn't like my 2.0 constructs like "for-each-group". My trial version of Saxon goes away in a few days. I'd like to be using the Stylus Studio built-in processor. I'm guessing that a messed up during the install by having Saxon 8 in my Stylus Studio directory.

Steve

Postnext
Tony LavinioSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Tony Lavinio
Date: 28 Feb 2006 07:42 PM
You still didn't answer the questions.

From where did you download Saxon?
And what did you do with it once you downloaded it?

Stylus Studio includes several different XSLT engines bundled
with it, each of which has different capabilities. Saxon 6 and
Saxon 8-B are both included. If you downloaded the Enterprise
edition, you get Saxon 6, Saxon 8-B, and Saxon 8-SA.

The default processor is only XSLT 1.0; we have a relationship
with Saxonica to provide Saxon to supply XSLT 2.0 support.

But which version of Saxon did you download, and where did you
put it? How did you tell Stylus to use it? And what do you mean
by saying that your Saxon version expires? Do you mean your
eval license for Saxon 8-SA?

Postnext
Steve YlvisakerSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Steve Ylvisaker
Date: 01 Mar 2006 08:59 AM
Tony
I think I am ok. However, here is the sequence of events:

I installed an eval copy of Stylus Studio Enterprise Edition. I worked with it using the delivered 1.0 capability.

Then I downloaded the evaluation copy of Saxon8 I don't know if it is 8-A or 8-B. The file name is just Saxon8.jar. At the same time I received Saxon8-dom -sql -xom -xpath. The file size of Saxon8 is 3,192 KB. I extracted the zip files into Stylus Studio 2006 XML Enterprise Edition/bin. The evaluation copy is good for 30 days. This worked fine. I was able to use all of the 2.0 stuff.

Next I purchased Stylus Studio Home Edition. Before installing it I uninstalled the evaluation copy of Stylus Studio Enterprise Edition. All that remains now in that bin folder are my Saxon files. (I'm assuming these are the eval files.)

I installed Stylus Studion Home Edition. Included in the bin folder is a copy of Saxon8.jar (3,259 KB) The -dom, -sql, -xom and -xpath files are not present.

When I use Stylus Studio I have been selecting, in my scenario, the Saxon 8.6.1 processor. It appears that I am able to use the 2.0 XSLT constructs as well as the new xpath functions.

So.. It looks to me as though the installation of Stylus Studio Home included Saxon8 with 2.0 capability for both XSLT and Xpath.

Does this look correct to you?
Steve

Postnext
Tony LavinioSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Tony Lavinio
Date: 01 Mar 2006 05:20 PM
Stylus Studio ships with saxon8.jar, and in the Enterprise
edition it ships with saxon8sa.jar, so there was no need for
you to download and install saxon8 at all.

The saxon8.jar or saxon8sa.jar we ship is actually a combination
of all of the saxon*jar files, including -sql and friends. It
also includes specific bug fixes that the author of Saxon sends
either directly to us or to saxon.sf.net, so overwriting what
we ship isn't a good idea.

However, if things are working, then we'll just call it even.

Posttop
Steve YlvisakerSubject: 1.0 to 2.0 (Maximum Recursion Depth Exceeded)
Author: Steve Ylvisaker
Date: 01 Mar 2006 05:36 PM
I think since stylus studio Home edition and Enterprise edition install themselves in separate directories I have managed not to step on myself. The home edition that I purchased is installed as it shipped.

Enjoying the product. Thanks for all your help.
Steve

 
Topic Page 1 2 3 4 5 6 7 8 9 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.