Attempting to use a positional variable with a where clause
File: Data.xml
0001
name 1
0002
name 2
0003
name 3
File: Query.xquery
for $prod at $count in doc("Data.xml")//car
where $prod/@model = ("B", "C")
order by $prod/name
return {$count}. {data($prod/name)}
Output:
2. name 2
3. name 3