BaseXdb/basex — pull request #669 by LeoWoerteler (2013-03-23 17:33:27+00:00)
Title: [FIX] XQuery, GH-659: Better error description for node tests (e.g. `element(foo)`).

Error message for Issue #659 is `[XPTY0004] Cannot treat element() as element(a): .` again.