> > All that would need to be done to make functions like that > side-effect free is to postpone the actual changes until > after the query has exited. You also need an execution model in which it is predictable whether the function is actually called or not. Michael Kay http://www.saxonica.com/