Hello! Can you add to BaseX (as module) function "line-number" which retrieves the line number of the expression ? Same as in eXist-db ( http://exist-db.org/exist/apps/fundocs/view.html?uri=http://exist-db.org/xquery/util&location=java:org.exist.xquery.functions.util.UtilModule&details=true ) or saxon ( http://www.saxonica.com/html/documentation/functions/saxon/line-number.html ).
it is very important for us because our users want see error line number in xml docs when our xquery scripts validate them.