Re: [basex-talk] function idref() and one-to-many

2014-02-03 Thread Tsvetanka Georgieva-Trifonova
] http://files.basex.org/releases/latest/ On Mon, Feb 3, 2014 at 8:17 AM, Tsvetanka Georgieva-Trifonova wrote: > Thank you for your answer! > But this solution does not work with one-to-many relationships. > When I run the following script: > let $i := >  aaa1 >  aaa2 &g

[basex-talk] function idref() and one-to-many

2014-02-02 Thread Tsvetanka Georgieva-Trifonova
Thank you for your answer! But this solution does not work with one-to-many relationships. When I run the following script: let $i :=   aaa1   aaa2   aaa3   aaa11   bb1   bb2 return $i/*[matches(@idref, 'a1')] BaseX produces the result: bb1 bb2 that is different from: bb1   Besides, my quest

[basex-talk] function idref() and one-to-many

2014-02-02 Thread Tsvetanka Georgieva-Trifonova
Hi BaseX, My question is about function idref(). How it should be applied in case of one-to-many relationships? For example:   aaa1   aaa2   aaa3   bb1   bb2 The expression: idref("a3")/.. gives the following result: bb2 But the expression: idref("a1")/.. does not give any result.   Thanks & r

[basex-talk] XQUERY command and PHP

2013-12-02 Thread Tsvetanka Georgieva-Trifonova
Hi Basex, My question is about the command XQUERY [query]. Does it work with any XQuery queries or only with XPath? I tried the following: execute("open myfirstdatabase");   echo $session->execute("xquery for $n in //country[name = 'Switzerland'] return $n")   ;   // close session   $session->cl