Dear Erol,
since 6.7 (I guess), the fn:doc() throws an exception if a database with more than one document is called. Please use fn:collection() or db:open() instead.
Christian
This database has been working find with previous basex. but I just installed 7.0.1 version and receiving this error.
Query: let $doc := fn:doc("Products")
return $doc Error: [BASX0008] Database 'Products' contains more than one document.
Erol Akarsu
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk