Xquery: Java Object extensions stateless?

Help
g_ball
2004-10-19
2012-10-08
  • g_ball

    g_ball - 2004-10-19

    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?

    Thanks,
    Greg

     
    • Michael Kay

      Michael Kay - 2004-10-20

      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()
      return date:toString($x)

      Remember to use the -TJ option for diagnostics on external function binding.

      Michael Kay

       

Log in to post a comment.