Add line-number function
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.
Hello, could the $err:line-number [1] variable help you ?
[1] http://docs.basex.org/wiki/XQuery_3.0#Try.2FCatch
Best regards,
Fabrice ETANCHAUD cerfrancepch
Quoted text · ????? ?????? · 8 lines
De : BaseX-Talk [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de ????? ?????? Envoyé : jeudi 5 juillet 2018 06:39 À : basex-talk at mailman.uni-konstanz.de Objet : [basex-talk] Add line-number function 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.
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.