From: Ariel L. <ar...@ho...> - 2006-04-18 14:26:40
|
Hi, In the last 2 days I was figthing with an stupid error when executing an = xquery An extreme simplification of the query is=20 let $resource :=3D fn:doc("/db/shakespeare/plays/hamlet.xml")/PLAY return $resource Running this query from XMLRPC throws the next exception (in = client-side) org.xmldb.api.base.XMLDBException: unexpected token: $ [at line 1, = column 72] [at line 1, column 72] at = org.exist.xmldb.RemoteXPathQueryService.compile(RemoteXPathQueryService.j= ava:74) ... 37 more Caused by: org.exist.xquery.XPathException: unexpected token: $ [at = line 1, column 72] [at line 1, column 72] at = org.exist.xmldb.RemoteXPathQueryService.throwXPathException(RemoteXPathQu= eryService.java:122) at = org.exist.xmldb.RemoteXPathQueryService.compileAndCheck(RemoteXPathQueryS= ervice.java:93) at = org.exist.xmldb.RemoteXPathQueryService.compile(RemoteXPathQueryService.j= ava:72) ... 38 more But if I run the query from the XQuery Sandbox works OK.=20 The source of the problem seems to be the absence of a " " (space = character) after PLAY and before return.=20 Could be that the CR character is not replaced by a " "? Greetings Ariel |