Re: [basex-talk] Issue for JAVA Bindings for Basex 7.7

2013-11-11 Thread Christian Grün
Thanks Jean-Marc, the issue has now been fixed, as described in https://github.com/BaseXdb/basex/issues/787. Best, Christian ___ On Mon, Nov 11, 2013 at 4:48 PM, jean-marc Mercier wrote: > Hi, > > To resume an exchange with BaseX members : > > The issue is JAVA Bindings

[basex-talk] Issue for JAVA Bindings for Basex 7.7

2013-11-11 Thread jean-marc Mercier
Hi, To resume an exchange with BaseX members : The issue is JAVA Bindings for BAseX version <= 7.7, illustrated by the following XQUERY code import module namespace set = "java.util.HashSet";{ let $loop := for $i in 1 to 128 return set:add($i) let $loop := for $i in 1 to 128 return set:add($i)

Re: [basex-talk] dynamically evaluate XPath

2013-11-11 Thread Imsieke, Gerrit, le-tex
Thanks Christian, that’s it! On 11.11.2013 13:49, Christian Grün wrote: Hi Gerrit, you are probably looking for the xquery:eval function [1]: xquery:eval( "db:open('" || $db || "', '" || $doc || "')" || $xpath) ___ BaseX-Talk mailing list BaseX-T

Re: [basex-talk] dynamically evaluate XPath

2013-11-11 Thread Christian Grün
Hi Gerrit, you are probably looking for the xquery:eval function [1]: xquery:eval( "db:open('" || $db || "', '" || $doc || "')" || $xpath) You can make the query string safer by bind ing variables to the evaluated expression: xquery:eval( "db:open($db, $doc)" || $xpath, map { "db" := $

[basex-talk] dynamically evaluate XPath

2013-11-11 Thread Imsieke, Gerrit, le-tex
I have a RESTXQ path/function that is supposed to retrieve a document fragment, restricted to an XPath expression that is given as a query parameter, i.e., as a string. The list of possible fragment XPaths has been calculated using path() by another function, and the user of a Web application m

Re: [basex-talk] my first question: how to deal with the duplicated files in basex?

2013-11-11 Thread Christian Grün
Hi Easy, please check out our documentation for more details [1]: try db:open() or fn:collection(). Christian [1] http://docs.basex.org/wiki/Databases ___ On Mon, Nov 11, 2013 at 3:57 AM, easy wrote: > > > Hi,all, > I found basex db can add same file in same db and c