[basex-talk] Qualified Attributes In Root Elements

2012-01-25 Thread J Gager
Dear All, I have found some odd behavior when using the db:add XQuery function with the document constructor. When the root element contains a qualified attribute, all namespaces are being dropped. For example: db:add('testing', document{ Text },'doc_1') will result in the following

Re: [basex-talk] baseX performance with large number of small documents (are the indexes working??)

2012-01-25 Thread Christian Grün
Dear Shahin, thanks for your email. As your queries include a non-equality condition (<), the existing indexes won't speed up your query. Instead, your data is sequentially parsed, which explans the linear increase of your query times. A future version of BaseX will include a range index [1] -- po

Re: [basex-talk] referring to the database root node from a function

2012-01-25 Thread Christian Grün
> The solution appears to simply do "let $x := collection()//whatever". ..true, I forgot that; collection() can be used as well to access the database that's currently opened in the GUI/on command line (..or in the "current database context", if we talk about the client APIs).

Re: [basex-talk] referring to the database root node from a function

2012-01-25 Thread Piotr Bański
I think my problem was that I do my editing in both oXygen and BaseX GUI at the same time, oXygen providing many useful features like completion, key bindings, commenting out of fragments containing comments, etc. And it must have been in oXygen that I used collection() in my function and got null

Re: [basex-talk] referring to the database root node from a function

2012-01-25 Thread Piotr Bański
Many thanks, Christian! :-) Piotr On 24/01/12 23:51, Christian Grün wrote: > Hi Piotr, > > yes, that's possible; please see the following example: > > - choose "Command" in the main window's drop box > - enter the following command in the input field and press return: > set bindings a=123 >