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
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Jerry BeureeSubject: Bug using global variables in xquery module?
Author: Jerry Beuree
Date: 26 May 2006 01:23 PM
I'm trying out the evaluation version of Stylus Studio 2006R2. I'm having problems getting it to work with some of our modules. They use global variables. For example:

---------
module namespace mod1 = "my-module";

declare variable $mod1:myvar := "value";
...
---------

When I try to import this module I get an error "Every global variable in a module must be in the module namespace [err:XQST0048]." It is in fact in the correct module namespace, so I'm suspecting this is a bug. Is there a way to workaround it?

Cheers,
Jerry

Postnext
Minollo I.Subject: Bug using global variables in xquery module?
Author: Minollo I.
Date: 26 May 2006 01:36 PM
Yes, this is a bug in the internal XQuery processor in Release 2, BL591.

The problem has been fixed in the coming Release 3 version, available in mid June; in the meanwhile you may want to switch to DataDirect XQuery or Saxon as processors to test/develop your XQuery.

Minollo

Posttop
Jerry BeureeSubject: Bug using global variables in xquery module?
Author: Jerry Beuree
Date: 26 May 2006 02:21 PM
Thanks for the quick response. DataDirect doesn't appear to support importing modules. Saxon works fine with the one exception that I can't seem to get Stylus Studio to let me set parameter values for the external variables in my xquery. It looks like it still uses the internal processor when displaying the Parameter Values tab of the scenario properties. Instead of showing my variables it gives me the "Every global variable in a module..." error again.

Thanks,
Jerry

 
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.