XQST0089

A variable bound in a for clause has the same name as the positional variable used in that same clause. This is not permitted. For example, change:

for $x at $x in (doc("catalog.xml")//product)

to:

for $x at $y in (doc("catalog.xml")//product)

Get XQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.