Good idea but I was pretty sure that this comes from within BaseX not oXygen. You can configure the parser and the executor of your XQuery in oXygen und I used BaseX for both.
So I found in basex-examples a XQJ tutorial. And just by changing Part1.java a little and filling in the example query from the Wiki I also get
XQJQS001 - Invalid XQuery syntax, syntax does not pass static
validation.
Root Cause:
net.xqj.basex.bin.bB: Lexical error at line 1, column 12.
Encountered: " " (32), after : "!"
at
org.basex.examples.xqj.tutorial.simplemaptest.main(simplemaptest.java:34)
at
org.basex.examples.xqj.tutorial.simplemaptest.main(simplemaptest.java:34)
So most probably BaseX'es XQJ parser does not understand the
simple map operator.
XQSequence xqjs = xqje.executeQuery("xquery version \"3.1\"; (1 to 10) ! element node { . }");
Hi Omar, Looks like that error message is generated by oXygen; you might want to crosspost to their list. Best MichaelAm 04.09.2017 um 14:31 schrieb Omar Siam <Omar.Siam@oeaw.ac.at>: Hi! I just tried to use ther Simple Map Operator while writing an XQuery in oXygen XML and executing the query using a client/server BaseX 8.6.6 data source. I configured it as described here: http://docs.basex.org/wiki/Integrating_oXygen When I use the Simple Map Operator (!) I only get "Invalid XQuery syntax, syntax does not pass static validation.". For example using "(1 to 10) ! element node { . }" If I run that XQuery in DBA for example it works. Any ideas? Best regards Omar Siam