XQException with Basex 7.9
Monday, 6 October 2014 · 2 messages
CG
Hi Erol,
your exception indicates that you are using XQJ, which only supports XQuery 3.0. As maps are a XQuery 3.1 feature [1], you'll either need to avoid using maps or wait for the next version of XQJ.
Hope this helps
Christian
[1] http://docs.basex.org/wiki/XQuery_3.1
Quoted text · Erol Akarsu · 53 lines
On Mon, Oct 6, 2014 at 5:35 PM, Erol Akarsu <eakarsu at gmail.com> wrote: > I am having syntax error at map(*) where 74'th chracter is first '(' > do you know why? > I run same script basex gui with base 7.9 w/o issue. > > declare variable $rawProductsFile as xs:string external; > declare variable $schemaFileName as xs:string external; > declare variable $tableName as xs:string external; > declare variable $outputFileName as xs:string external; > > (:(line 7 is this line:) > declare function local:getFieldMap ($schemaFileName as xs:string) as map(*) > > > javax.xml.xquery.XQException: > XQJQS001 - Invalid XQuery syntax, syntax does not pass static validation. > Root Cause: > net.xqj.basex.bin.bx: Encountered " "(" "( "" at line 7, column 74. > Was expecting one of: > "*" ... > "?" ... > "external" ... > "{" ... > "+" ... > > at com.ferguson.xquery.RunQueries.queryForFilterData2(RunQueries.java:147) > at > com.ferguson.endeca.EndecaEngine.processExtractDARFilesExt(EndecaEngine.java:377) > at com.ferguson.endeca.EndecaEngine.main(EndecaEngine.java:142) > at com.ferguson.xquery.RunQueries.queryForFilterData2(RunQueries.java:147) > at > com.ferguson.endeca.EndecaEngine.processExtractDARFilesExt(EndecaEngine.java:377) > at com.ferguson.endeca.EndecaEngine.main(EndecaEngine.java:142) > > On Mon, Oct 6, 2014 at 11:20 AM, Dániel Kiss-Kálmán > <kisskalmandaniel at gmail.com> wrote: >> >> Hello Basex-Talkers, >> >> when I try to enter a variable I need the $ char. I use hungarian >> keyboard, and $ is AltGr + É keyboard combination. The only annoying thing >> is when I press AltGr + É, $ appears, but just before that cursor jumps to >> the first row first char position. So $ is smiling as the first char in the >> first row. No other keboard combination does that, only AltGr + É. So every >> time I need a variable I use clipboard instead of pressing $ char. >> >> Can onyone make my life a little easier to correct it if it is possible at >> all? >> Or help me how to try to remove that cursor jump? >> >> Thanks in advance, Daniel > >
EA
Erol Akarsu6 Oct 2014 19:35 #
I am having syntax error at map(*) where 74'th chracter is first '(' do you know why?
I run same script basex gui with base 7.9 w/o issue.
declare variable $rawProductsFile as xs:string external;
declare variable $schemaFileName as xs:string external;
declare variable $tableName as xs:string external;
declare variable $outputFileName as xs:string external;
(:(line 7 is this line:)
declare function local:getFieldMap ($schemaFileName as xs:string) as map(*)javax.xml.xquery.XQException:
XQJQS001 - Invalid XQuery syntax, syntax does not pass static validation. Root Cause:
net.xqj.basex.bin.bx: Encountered " "(" "( "" at line 7, column 74. Was expecting one of:
"*" ...
"?" ...
"external" ...
"{" ...
"+" ...
at com.ferguson.xquery.RunQueries.queryForFilterData2(RunQueries.java:147) at
com.ferguson.endeca.EndecaEngine.processExtractDARFilesExt(EndecaEngine.java:377) at com.ferguson.endeca.EndecaEngine.main(EndecaEngine.java:142) at com.ferguson.xquery.RunQueries.queryForFilterData2(RunQueries.java:147) at
com.ferguson.endeca.EndecaEngine.processExtractDARFilesExt(EndecaEngine.java:377) at com.ferguson.endeca.EndecaEngine.main(EndecaEngine.java:142)
Quoted text · Dániel Kiss-Kálmán · 17 lines
On Mon, Oct 6, 2014 at 11:20 AM, Dániel Kiss-Kálmán < kisskalmandaniel at gmail.com> wrote: > Hello Basex-Talkers, > > when I try to enter a variable I need the $ char. I use hungarian > keyboard, and $ is AltGr + É keyboard combination. The only annoying thing > is when I press AltGr + É, $ appears, but just before that cursor jumps to > the first row first char position. So $ is smiling as the first char in > the first row. No other keboard combination does that, only AltGr + É. So > every time I need a variable I use clipboard instead of pressing $ char. > > Can onyone make my life a little easier to correct it if it is possible at > all? > Or help me how to try to remove that cursor jump? > > Thanks in advance, Daniel >
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery