I have fixed a similar issue, so the current error message is this:
Compilation error: <bad.xq>:3,1: static error [err:XPST0003]: invalid expression: syntax error, end tag </foo> does not match start tag <bar>; raised at /home/colea/xquery_bzr/hof/src/compiler/api/compiler_api.cpp:195
I think it is explicit enough, but I could still improve it if you have suggestions for a better message.
I have fixed a similar issue, so the current error message is this:
Compilation error: <bad.xq>:3,1: static error [err:XPST0003]: invalid expression: syntax error, end tag </foo> does not match start tag <bar>; raised at /home/colea/ xquery_ bzr/hof/ src/compiler/ api/compiler_ api.cpp: 195
I think it is explicit enough, but I could still improve it if you have suggestions for a better message.