Hi Pascal,
finally some feedback:
java -Xmx512m -cp "/Users/pascal/git/dwb/lib/BaseX77.jar" -Dorg.basex.DBPATH=../BaseXdata org.basex.BaseX -ifoo which is expected to open the foo database, and from the prompt try to run:
xquery count(*)
This returns a count of 0
I tried something similar, and I got "1" as result. Did you also try more recent versions of BaseX (7.8.2, 8.0 beta)?
Christian