Re: [basex-talk] some eq versus =

2024-04-10 Thread Christian Grün
Hi Leo, I came across this question because I needed to know whether there are city > elements twice in the file. For that I wrote version 2 and the result was > wrong. Then I wrote version 1 with > … satisfies . => deep-equal($city) > that gave the correct answer. I noticed that I do not fully

Re: [basex-talk] some eq versus =

2024-04-10 Thread Leo Studer
Hi Christian Thanks for your answer. I came across this question because I needed to know whether there are city elements twice in the file. For that I wrote version 2 and the result was wrong. Then I wrote version 1 with … satisfies . => deep-equal($city)that gave the correct answer. I noticed

Re: [basex-talk] some eq versus =

2024-04-09 Thread Christian Grün
Hi Leo, Yes, they are equivalent. Version 2 is a bit faster because "." will only need to be atomized once. We’ll examine if BaseX can automatically rewrite version 1 to version 2. Best, Christian On Mon, Apr 8, 2024 at 11:59 PM Leo Studer wrote: > Hello > > are the following queries

Re: [basex-talk] some eq versus =

2024-04-08 Thread Martin Honnen
On 08/04/2024 23:58, Leo Studer wrote: Hello are the following queries equivalent? 1. //*city*[*some* *$city* *in* following::*city* *satisfies* /string/(.) eq /string/(*$city*)] 2. //*city*[.=following::*city*] More or less, I would say, depending on whether there is schema-aware

[basex-talk] some eq versus =

2024-04-08 Thread Leo Studer
Hello are the following queries equivalent? 1. //city[some $city in following::city satisfies string(.) eq string($city)] 2. //city[. = following::city ] Thanks in advance, Leo