[basex-talk] XQuery Update using IF Condition...

2013-01-02 Thread John Best
Dear Team, I am getting error - If expression : no updating expression allowed - while trying to update the Data DB. I need to update the DB, if it is not already updated... for $c in doc('2012')/Docs/Doc/No/@n return if

Re: [basex-talk] http server ... outsider localhost

2013-01-02 Thread Andy Bunce
Peter, Good to know it worked. Christian, I think this change should be made to the github source /Andy On Tue, Jan 1, 2013 at 2:00 AM, p...@themail.co.uk wrote: Andy changing the default to 0.0.0.0 worked. Many thanks Peter Original Message From: bunce.a...@gmail.com To:

Re: [basex-talk] how to pass raw bytes intact?

2013-01-02 Thread Christian Grün
As Liam indicated (thanks!), XQuery may not be the best choice to process data on byte level: XQuery was built to work with Unicode characters as basic unit, which means that it will never be possible with pure XQuery to create illegal UTF8 sequences. This also means that the language provides no

[basex-talk] UPDINDEX

2013-01-02 Thread pw
Hello List I am working with 7.5 and am looking for guidance on setting UPDINDEX If I run the basex http server from the command line and GET UPDINDEX it is initially false. If I then open the client and GET UPDINDEX it is also false (as expected). Through the client I can then set it with the

[basex-talk] Either db:replace() or I had too much to drink this XMas

2013-01-02 Thread France Baril
Hi, I am having issues with updating functions in BaseX 7.5 (official release). When I update a document, its content is updated with the content of another document. I even perform the db:optimized in a separate function after a forward to ensure that the db:replace is in fact completed

Re: [basex-talk] UPDINDEX

2013-01-02 Thread Christian Grün
Since Version 7.5, you can specify globally valid options via system properties: http://docs.basex.org/wiki/Options ___ On Wed, Jan 2, 2013 at 8:10 PM, p...@themail.co.uk wrote: Hello List I am working with 7.5 and am looking for guidance on setting UPDINDEX If I

[basex-talk] TR: how to know creation options of a database

2013-01-02 Thread Fabrice Etanchaud
Thank you once again Christian for your fast reply, and update ! BaseX is a fantastic XML tool. Wondering how I could process XML before ! As night time is also dream time, Do you still plan to increase database node count limitation for the next major version ? Good night -Message

[basex-talk] Fwd: concat string in for loop

2013-01-02 Thread Jarosław Kowalewski
Hi, I've a problem with concatation strings in for loop. e.g. xquery concat(text,'#10;',additional text), '#10;', '#10;', for $i in rootaelement-a/abelement-b/b/root/* return concat($i,'#10;') give me the result text additional text element-a element-b with additional space before

Re: [basex-talk] TR: how to know creation options of a database

2013-01-02 Thread Christian Grün
Hi Fabrice, Do you still plan to increase database node count limitation for the next major version ? it’s on our agenda, but among hundreds of other more pressing issues, so… don’t expect this too soon. ___ Good night -Message d'origine- De : Christian

Re: [basex-talk] Fwd: concat string in for loop

2013-01-02 Thread Christian Grün
Cześć, Jaroslwy, as XML serialization was originally not built for outputting text, the handling of whitespaces is a little tricky. However, you can benefit from the new XQuery 3.0 item-separator output option: declare option output:item-separator '\n'; concat(text,'#10;',additional text),

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2013-01-02 Thread David Stuebe
Hi Chris I did look at the Query Info in the Gui and it seems you are correct. The complex query I created is not utilizing the full text index. Details here: https://gist.github.com/4438473 The gist contains query info for the complex search that I created and for a simple one that just

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2013-01-02 Thread Christian Grün
Hi David, due to the complexity of XQuery, it’s often a big challenge for the query optimizer to find out if an index can be used or not. This is the reason why some XML database don’t even try to rewrite queries for index access. What you can always do is: directly address the available index

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2013-01-02 Thread Christian Grün
Check out our Wiki article on full-text processing to find out more: http://docs.basex.org/wiki/Full-Text ___ On Wed, Jan 2, 2013 at 11:17 PM, Christian Grün christian.gr...@gmail.com wrote: Hi David, due to the complexity of XQuery, it’s often a big challenge for