I am raising this comment because I have seen several XQuery users make mistakes as a result of the syntactic inconsistency between global variable declarations and local variables, and there seems to be no good reason why they are so different. For global variables we write: declare variable $x [as xs:integer] {3}; while for local variables we write: let $x [as xs:integer] := 3 I suggest changing the global variable syntax to: declare variable $x [as xs:integer] := 3; An external variable would be: declare variable $x [as xs:integer] external; Michael KayReceived on Friday, 23 January 2004 17:51:57 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:04 GMT