[MOD] XQuery, BXDB0006: better error messages