I cannot seem to find a way of instantiating a java object and using it later in Xquery. It looks like you either pass in the constructor each time or call a static method. Is this part of the programming model?
You should be able to pass an instance as the first argument in a call to an instance-level (non-static) method, for example
let $x := date:new()
Remember to use the -TJ option for diagnostics on external function binding.
Log in to post a comment.