berkeley-db-xml

Unexpected <qualifier name>


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


Solution

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