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

2013-01-08 Thread France Baril
Yes it is somewhat equivalent. I modified it a little bit, to test the update. Devicehelp doesn't seem get updated with this command. commands create-db name=en-us/ add path=devicehelp.xml menu id=devicehelp/ /add add path=smbonly.xml menu id=smbonly/ /add add

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

2013-01-08 Thread Christian Grün
I wonder what this could be. The script below gives me smbonly ptt-help new as result; what do you get? commands create-db name=en-us/ add path=devicehelp.xml menu id=devicehelp/ /add add path=smbonly.xml menu id=smbonly/ /add add path=ptt-help.xml menu id=ptt-help/ /add

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

2013-01-08 Thread France Baril
Never mind, I still had the terminal opened when I ran this in the GUI… probably was interfering. I'm back to 7.4 to be able to develop on something that works for my team. As soon as I can get back to 7.5, I'll test the command again. The two of them don't seem to work well in parallel. This is

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

2013-01-05 Thread Christian Grün
Baril, sorry, but I’m still not sure how to reproduce your use case. let $raw-menu := app:open-db('en-us')/menu[@id = $menu-id] Is app:open-db(...) equivalent to db:open(...) ? Do you think that the following script is equivalent to what you do via RESTXQ? commands create-db

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

2013-01-03 Thread France Baril
You'll get the same error without the forward, without the debug lines and without the second function. The error is that the content of the file with menu-id=devicehelp is going to be replaced by the content of an other menu. The example becomes: You'll need a db named 'en-us' with the 3

[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