Re: [basex-talk] Add line-number function

2018-07-06 Thread Giuseppe Celano
ion (otherwise, due to performance considerations, >>>> line numbers will be discarded as well). >>>> >>>> On query/database level, there are two ways to get a direct reference: >>>> • With fn:path, you get an XPath expression that points to your node

Re: [basex-talk] Add line-number function

2018-07-06 Thread Christian Grün
>> On query/database level, there are two ways to get a direct reference: > >> • With fn:path, you get an XPath expression that points to your node. > >> • With db:node-pre [1], you get a direct reference to the node in a > >> database. > >> > >>

Re: [basex-talk] Add line-number function

2018-07-06 Thread Giuseppe Celano
p://docs.basex.org/wiki/Database_Module#db:node-id >> >> >> On Thu, Jul 5, 2018 at 5:49 PM Fabrice ETANCHAUD >> wrote: >> >> >> As BaseX does not work on the XML textual representation, it might not be >> possible. >> >> >> >> >

Re: [basex-talk] Add line-number function

2018-07-06 Thread Christian Grün
s not work on the XML textual representation, it might not be > possible. > > > > > > De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la > part de ? ?? > Envoyé : jeudi 5 juillet 2018 17:10 > À : basex-talk@mailman.uni-konstanz.de &g

Re: [basex-talk] Add line-number function

2018-07-06 Thread Giuseppe Celano
on the XML textual representation, it might not be >> possible. >> >> >> >> >> >> De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la >> part de ? ?? >> Envoyé : jeudi 5 juillet 2018 17:10 >> À : basex-t

Re: [basex-talk] Add line-number function

2018-07-06 Thread Christian Grün
?? > Envoyé : jeudi 5 juillet 2018 17:10 > À : basex-talk@mailman.uni-konstanz.de > Objet : [basex-talk] Add line-number function > > > > > > > > Hello, could the $err:line-number [1] variable help you ? > > [1] http://docs.basex.org/wiki/XQuery_3

Re: [basex-talk] Add line-number function

2018-07-05 Thread Fabrice ETANCHAUD
As BaseX does not work on the XML textual representation, it might not be possible. De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de ? ?? Envoyé : jeudi 5 juillet 2018 17:10 À : basex-talk@mailman.uni-konstanz.de Objet : [basex-talk] Add line-number

[basex-talk] Add line-number function

2018-07-05 Thread Павел Павлов
> >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 No, $err:line-number show line number of xquery file. I want this: Example.xml -> 1: 2:   3:      text1 4:      text2 5:  

Re: [basex-talk] Add line-number function

2018-07-05 Thread Fabrice ETANCHAUD
: basex-talk@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.

[basex-talk] Add line-number function

2018-07-04 Thread Павел Павлов
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=java:org.exist.xquery.functions.util.UtilModule=true ) or saxon (