Unexpected <qualifier name>

35 Views Asked by At

I am running the following command which is running perfectly in other XQuery processors

for $title in doc("dbxml:/auction/auction")/site/regions/* 
for $tit in $title for $it in $tit/item 
let $country:=$it/location 
group by $country 
return <result><loc>{ $country }</loc><num>{count($title)}</num></result>

However, in Berkeley I am getting an inexplicable error:

enter image description here

Please help.

P.S. Will provide more details if necessary

1

There are 1 best solutions below

0
On BEST ANSWER

Because Berkeley XML DB doesn't support group by of XQuery 3.0