http://www.w3.org/Bugs/Public/show_bug.cgi?id=4441 ------- Comment #3 from mike@saxonica.com 2007-03-31 23:28 ------- <quote> let $env := local:prepareEnvironment() return ($env, local:do-something()) This enforces evaluation of the method body in all implementations </quote> Well, it's not 100% guaranteed. But Saxon for example is careful to treat an external function with a Java return type of "void" as having a static type of item()* rather than empty-sequence(), to stop the optimizer doing anything "clever" with such a construct. It can still be difficult to enforce the order in which such functions are evaluated. Michael KayReceived on Saturday, 31 March 2007 23:28:51 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:19 GMT