Hi,
 
We are in the process of evaluating BaseX  and recently upgraded from version 7.9 to  8.2.3


We have a DB “TESTDB” with 50 xml files, named Fund1.xml, Fund2.xml, Fund3.xml,…. each having the same structure:

Fund1.xml
--------------

< fund>

<properties>

<domain reference=”fund1”>

</domain>

</properties>

</fund>


Fund2.xml
--------------

< fund>

<properties>

<domain reference=”fund2”>

</domain>

</properties>

</fund>

….
….



The following query does not behave the same on both versions :


For $d at $i in db:open(“TESTDB”)/fund/properties/domain
where $i < 2
return data($d/@reference)


Result in 7.9
------------------

“Fund1”


Result in 8.2.3
-----------------

“Fund1 Fund2 Fund3 Fund4 …”


Is this a bug or is there something wrong with the query ?


Best Regards,

Antoine Wolf