store:read within an updating function
Thursday, 4 December 2025 · 2 messages · last reply 7 Dec 2025
RS
Rob Stapper4 Dec 2025 14:26 #
Hello Christian,
Allthough the
store:read function returns an empty sequense I found that it still triggers the error: 'expressions must all be updating ....', when used within an updating function.
I guess this error is unnecesary.
The workaround is quite easy by using a void function[1]
[1] store:read( $name) => void()
mvgr.
Rob StapperCG
Christian Grün7 Dec 2025 11:39 #
Hi Rob,
Could you provide us with a self-contained example? The following example code works as expected:
store:read('x'),
delete node <a/>Best,
Christian
Quoted text · Rob Stapper · 11 lines
Von: Rob Stapper via BaseX-Talk <basex-talk at mailman.uni-konstanz.de> Gesendet: Donnerstag, 4. Dezember 2025 14:26 An: basex-talk at mailman.uni-konstanz.de <basex-talk at mailman.uni-konstanz.de> Betreff: [basex-talk] store:read within an updating function Hello Christian, Allthough the store:read function returns an empty sequense I found that it still triggers the error: 'expressions must all be updating ....', when used within an updating function. I guess this error is unnecesary. The workaround is quite easy by using a void function[1] [1] store:read( $name) => void() mvgr. Rob Stapper
Written for BaseX 12.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery