I'm using saxon xquery (java) with a custom extension function. All my test code is working great, however now I want to pass an object parameter (actually an ejb local interface) to the DynamicQueryContext (using setParameter) and further pass that variable into a custom external function. The only problem is, I'm having trouble with is what type to declare the external variable as so that it can be seen/used within the xquery. I read somewhere that saxon xquery supports wrapped objects? But I've tried both xs:wrappedObject and xdt:object and no joy with either.
What I'm trying to achieve is something like:
declare namespace myfunctions='java:com.mypackage.MyFunctions';
declare variable $remoteInterface as xs:wrappedObject external;
.......myfunctions:someMethod($remoteInterface, $somedata, $someotherdata)
Anyone have any thoughts as to where I'm going wrong?
Start at the new Yahoo!7 for a better online experience. http://www.yahoo7.com.au