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
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
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
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
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
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
6 matches
Mail list logo