W3C XQuery Standard Equivalent: err:XQST0089
Message Text
An "at" variable may not have the same name as the bound variable
Cause
The same variable name is used as both the for variable and its associated positional variable in the at clause. For example:
for $bad-choice at $bad-choice...
Response
Correct your code by using different variables in the for and its at clause.