Hi Collection with none and one document inside reports the same count of documents: 1
create db Test3 Database 'Test3' created in 119.19 ms. xquery count(collection('Test3')) 1 Query executed in 0.43 ms. xquery for $doc in collection("Test3") return base-uri($doc) file:/D:/opt/BaseX/Test3 Query executed in 0.74 ms. xquery /
Query executed in 0.33 ms.
add as xml.xml <root/> Path 'xml.xml' added in 3.67 ms. xquery / <root/> Query executed in 1.1 ms. xquery count(collection('Test3')) 1 Query executed in 0.54 ms.
With best regards Jan PS: If I should fill it to some bug tracking tool, just let me know where I can find it. Sourceforge? -- *Jan Vlčinský* Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic tel: +420-597 602 024; mob: +420-608 979 040 skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com