Comment 1 for bug 1072644

Revision history for this message
Nicolae Brinza (nbrinza) wrote :

More info from David:

variable $x := <a b="c"/>;

declare function local:test($a)
{
  $a
};

local:test($x)

The error seems to happen when "keywords" located in scripting code are missing or are containing typos. Unfortunately, the error message always contains a completely useless location and error msg. In larger xquery modules, this is super annoying. Basically, the error message is then completely useless and I need a lot of time to find the problem.

Chris' suggestion:

For better clarity, I might phrase the message

  syntax error, unexpected expression (did you forget a comma "," between expressions?)

--