running xquery file with -c parameter returns unknown command: for

Monday, 12 November 2012 · 2 messages
BR
bryan rasmussen12 Nov 2012 14:45 #
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
CG
Christian Grün12 Nov 2012 14:46 #
Once again I need some more information.. How does your command line call look like?
Quoted text · bryan rasmussen · 30 lines
On Mon, Nov 12, 2012 at 2:45 PM, bryan rasmussen <rasmussen.bryan at gmail.com> wrote: > 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 > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery