When I use -c to run a file and the file is empty_titles.bsx with the following
XQUERY for $doc in db:open("dkcontent") where $doc//TITEL[. =""] return <doc>{$doc/*/@ID}</doc>
returns fine.
when the file is empty_titles.xq with the following:
for $doc in db:open("dkcontent") where $doc//TITEL[. =""] return <doc>{$doc/*/@ID}</doc>
I get
Stopped at line 1, column 3: Unknown command: for. Try HELP.
This is on Windows using basexclient.
Thanks, Bryan Rasmussen