Dear Nigel,
line and column information is omitted in error messages returned by the server. One solution to get more feedback is to use the BaseX API or the command line of BaseX, or to directly test your query in the BaseX GUI Editor.
Your request is a good hint, though; we might add extended server feedback in the next minor release.
Christian
On Fri, Jul 9, 2010 at 7:58 PM, Nigel Alderton nigel.alderton@bigtooth.co.uk wrote:
If I get an error message like this:
[XPST0003] Incomplete 'let' expression.
How can I find out more information regarding the error eg. the name of the function that failed? The error message doesn’t give any clue about where the error occurred.
I’m using PHP. My code is based on the example code supplied with BaseX.
<?php
include("BaseXClient.php"); $CMD_OPEN = "open cgd-dat"; // BaseX command to open the database. $xq = "xquery ... a long xquery"; // BaseX xquery command.
try { $session = new Session("localhost", 1984, "admin", "admin"); $session->execute($CMD_OPEN); print $session->execute($xq); $session->close(); } catch (Exception $e) { print $e->getMessage(); }
basex-talk@mailman.uni-konstanz.de