[xquery-talk] context item in module variable

Benito van der Zander benito at benibela.de
Sun Oct 13 06:07:38 PDT 2013

what is the value of the context item in a variable declaration of an 
module in XQuery 1?
Since the spec says "The context item, position, and size in the dynamic 
context of the initializing expression have initial values as described 
in C.2 Dynamic Context Components." where it says "Default initial value 
= none", it should be undefined.

But the new XQTS has a test

   module namespace context="http://www.xqsharp.com/test/context";
   declare variable $context:item := .;

where it is then tested for not undefined...


More information about the talk mailing list