Subject: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.