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
Shane McRobertsSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Shane McRoberts
Date: 25 Sep 2005 11:29 PM
I have a very simple stylesheet that attempts to open an XML file using the following (I'm using Saxon to get XSLT 2.0 functionality):

<xsl:variable name="site" select="document('atomicpug.net.xml')"/>

I get the following error:

java.lang.RuntimeException:
This feature is only available in the Stylus Studio Enterprise Edition
You are not licensed to use the StylusFileFactory API.

I'm using a fairly straightforward technique from Dmitry Kirsanov's book "XSLT 2.0 web development" to build a 6-page personal website and I'm surprised this requires EE. Does it really?

Postnext
Tony LavinioSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Tony Lavinio
Date: 26 Sep 2005 04:43 PM
Could you post or email to stylus-field-report (at) stylusstudio.com
your XSL and XML file? Then we could determine why it thinks EE is
needed. AFAIK, you should be able to use Saxon with Home Edition, but
it might be the document() function that has the trouble.

Postnext
Tony LavinioSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Tony Lavinio
Date: 26 Sep 2005 05:00 PM
Go to the scenario page, and see if the "Use Stylus Studio URI resolver"
box is checked. If it is, that is the problem. The Stylus Studio URI
resolver is only available with Enterprise, and can only be enabled by
an Enterprise edition (or an older Professional edition, from before we
had a separate Enterprise edition).

If that XSL document was created by another version, and then loaded
into a Home version, the flag will still be set. Try changing the
engine type from Saxon to Built-in and then back. If that doesn't
disable it, create a new scenario, copy the options, and then delete
the troubled scenario.

Postnext
Shane McRobertsSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Shane McRoberts
Date: 26 Sep 2005 10:34 PM
That setting was, in fact, set. I have never had anything but home (and only for a few days) and had just switched to Saxon to get the XSLT 2.0 support. Weird thing is that checkbox is disabled so there was no way to clear it. I rebooted for unrelated reasonse, and it cleared itself. Now all is fine. I'm looking forward to native Stylus support for 2.0--the Saxon error messages are nearly useless (they tell you where the problem is but seldom what it is).

Postnext
Tony LavinioSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Tony Lavinio
Date: 27 Sep 2005 01:07 AM
Saxon does report errors; to see them, use View|Output Window.

In the next release of Stylus Studio, we've made them more prominent
so that this isn't necessary.

Postnext
Shane McRobertsSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Shane McRoberts
Date: 28 Sep 2005 12:36 AM
I've confirmed that this bug repros.

1. Create a new xsl stylesheet in Home edition.
2. Change version= to "2.0".
3. Run it. You will be prompted to use Saxon instead of built-in because the built-in processor doesn't support 2.0.
4. Accept the switch to Saxon. You will immediately get an error in the Output window saying the Enterprise edition is required
5. Open the scenario and go to the Processor tab. You'll see that the URI resolver checkbox is checked but disabled (grayed).

The only way I've found to clear this is to reboot.

PS> Yes, I know the Saxon processor outputs error messages. I have found the built-in processor's error messages much more useful.

Posttop
Tony LavinioSubject: document() fails in home edition -- does this really require Enterprise Ed.?
Author: Tony Lavinio
Date: 28 Sep 2005 04:19 PM
Okay, here's the problem. If we automatically switch you from 1.0 to
2.0 mode, we don't touch the 'Use Stylus resolver' setting. It doesn't
matter how it is set for the internal processor, but it does matter for
Saxon. We should be forcing it off if you are using a version of Stylus
Studio that doesn't support using our resolver, but instead we're just
leaving it at the default value.
It has been fixed for the next patch release and also the next full
release of Stylus Studio.
In the meantime, you can open any affected XSL files with notepad or
some other simple editor, and in the meta-information at the end of the
file, change
useresolver="yes"
to
useresolver="no"
and the XSL file will become usable without having to restart anything.

 
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.