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
Posttop
Urs KeiserSubject: Xquery calling Java function for Saxon 8.4 processor
Author: Urs Keiser
Date: 13 Jul 2005 04:19 AM
Hi,

I have a little problem with xquery and the saxon 8.4 processor in 'Stylus Studio 6 XML Professional Edition Release 3':

I am running an xquery calling java functions.

When running this xquery with the built in xquery processor, it works fine. (Location of java files defined by classpath in Stylus Studio)

However when I change to the Saxon 8.4 xquery processor within Stylus Studio, then an error occurs: 'One ore more static errors were reported during query analysis'.
My first problem is that I have no information about these errors, except, that I found in 'Scenario Properties -> Tab: Parameter Values' the information:
"Error: External function '...' has not been bound to an implementation in ...xquery, line .., column ...

My question: is the found error information related to the query analysis (which I expect to be) and what can I do to make this xquery running also with the Saxon 8.4 xquery processor.

The code in the xquery file is in principle:

declare namespace BACnetObjectID = "class:com.sibt.xquery.BACnetObjectID";
declare function BACnetObjectID:getBACnetObjectID($arg1 as xs:string) as xs:string external;

let ...
for ...
return
<report>
...
<Object_Type>
{ BACnetObjectID:getBACnetObjectID( ... ) }
</Object_Type>
...
</report>

The xquery code should be ok, however something is not correct in the declaration or the settings in Stylus Studio for the saxon xquery processor. I know it worked before with an older Stylus Studio version and also with Stylus Studio 6 Enterprise Edition.

Thank you for your help
Urs Keiser
Switzerland

 
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.