Re: [basex-talk] unexpected behaviour

2015-05-13 Thread Christian Grün
Hi Rob, It usually takes me some time to understand new code, so could you possibly simplify the example as much as possible? For example, the import cannot be resolved, an empty squence is bound to $a, which means that one branch will never be called, and maybe you can simplify the partial

Re: [basex-talk] New BaseX client for nodejs

2015-05-13 Thread Christian Grün
Hi Alex, I am making a new BaseX client for nodejs. That's nice to hear, thanks for the update! I hit enter by mistake and gmail sent before I finished listing the current features and adding a link A little hint: I activated the undo send lab feature in GMail. The only problem is that I'm

[basex-talk] New BaseX client for nodejs

2015-05-13 Thread alxarch
Hi all, I am making a new BaseX client for nodejs. It focuses on utilising node streams in order to be able to pipe data to/from BaseX directly. (i.e. pipe request body to an ADD command or pipe XQuery output to a response). It also uses promises for more code flow flexibility. Features: -

Re: [basex-talk] unexpected behaviour

2015-05-13 Thread Christian Grün
If I get it right, you would also expect '!' not to be output in the following query, right? declare function local:f($a, $b) { if($a) then $b else () }; local:f((), trace('!')) In this case, you'll have to wrap your trace call in a function: declare function local:f($a, $b) {

Re: [basex-talk] Add metadata to a group of documents inside the database

2015-05-13 Thread Menashè Eliezer
Vincent, Thank you for the creative solution. I've also commented the feature request as a reply to your question. With kind regards, Menashè On 05/12/2015 03:57 PM, Lizzi, Vincent wrote: Menashè, In similar situations I've used a second database to store metadata at the same path as the

Re: [basex-talk] unexpected behaviour

2015-05-13 Thread Leonard Wörteler
Hi Rob, Am 13.05.2015 um 09:55 schrieb Rob Stapper: Both do give the same, correct result: an empty sequence, but the first item unnecessarely triggers function: “local:f1#1” , while the second item doesn’t. This is a subtle but important difference between the two ways of partially applying

[basex-talk] Joe Wicentowski collects sites that are powered by XQuery

2015-05-13 Thread Alexander Holupirek
For those who have sites that are powered by BaseX/XQuery. Begin forwarded message: From: Joe Wicentowski joe...@gmail.com Subject: [xquery-talk] @XQuery, #xquerypower, and related efforts Date: 13. Mai 2015 21:03:56 MESZ To: XQuery Talk t...@x-query.com Dear XQuery Talk, Friends of

Re: [basex-talk] Lock/release question

2015-05-13 Thread France Baril
Do you have an approximate timeframe? On Tue, May 12, 2015 at 12:21 AM, Christian Grün christian.gr...@gmail.com wrote: Hi France, Currently, locks are only applicable in WebDAV. An open issue exists for global lock operations [1]; you are invited to add your comments. Best, Christian

Re: [basex-talk] Problem with Variable having Numericvalue node comparison

2015-05-13 Thread Christian Grün
Simply convert the values to numbers: let $v3 :=a790.00/a let $v2:=a93.00/a return number($v2) = number($v3) Best, Christian On Wed, May 13, 2015 at 9:40 AM, ankit kumar anky4b...@gmail.com wrote: Hi, I am trying to compare two variable in basex as given, let $v3

[basex-talk] Problem with Variable having Numericvalue node comparison

2015-05-13 Thread ankit kumar
Hi, I am trying to compare two variable in basex as given, let $v3 :=a790.00/a let $v2:=a93.00/a return $v2 = $v3 I am expecting that it will give me true, But it is giving false. I think it is because of the comparison is only string comparison. Is it possible to configure basex for

[basex-talk] unexpected behaviour

2015-05-13 Thread Rob Stapper
Hi Christian, Can you have a look at the attached program. Both items of the returned sequence of the program should do the same thing. Both do give the same, correct result: an empty sequence, but the first item unnecessarely triggers function: local:f1#1 , while the second item doesn't.

Re: [basex-talk] Problem with Variable having Numericvalue node comparison

2015-05-13 Thread ankit kumar
Thanks for your reply. Actually, The comparison expression is coming from other side. So changing the expression is not possible for me. Thanks, Ankit On 13 May 2015 at 13:18, Marco Lettere marco.lett...@dedalus.eu wrote: On 13/05/2015 09:40, ankit kumar wrote: let $v3 :=a790.00/a let

Re: [basex-talk] Problem with Variable having Numericvalue node comparison

2015-05-13 Thread Christian Grün
Who is the other side? What can you change? On Wed, May 13, 2015 at 10:00 AM, ankit kumar anky4b...@gmail.com wrote: Thanks for your reply. Actually, The comparison expression is coming from other side. So changing the expression is not possible for me. Thanks, Ankit On 13 May 2015 at