store:read within an updating function
RSRob 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 Stapper
CGChristian 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/>
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
⚡Generated with XQuery