RE: Variables and FLWOR bindings

"Michael Kay" <[email protected]> Sun, 20 Jun 2004 08:48:25 +0100
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>
The new bindings override the old.
 
There was a lot of debate on this and the final decision was made on a
majority verdict. I was in the minority who wanted it to be an error.
 
Michael Kay

  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of
Stéphane Mbaye
Sent: 19 June 2004 15:34
To: XQuery
Subject: Variables and FLWOR bindings


Dear all,
 
Do the FLWOR bindings override the variables of the static or dynamic
contexts, or should an error be raised ?
 
Example :
 
declare variable $a { 7 } ;
for $a in ( 1 to 10 )
return $a
 
Regards
Stephane Mbaye