Add line-number function

Thursday, 5 July 2018 · 2 messages
ПП
Павел Павлов5 Jul 2018 06:38 #
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.
FE
Fabrice ETANCHAUD5 Jul 2018 10:27 #
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.

⚡Generated with XQuery