Hi,
I stumbled upon this behavior. Is this a bug? I’m still using Basex version 9.7.
Code[1]:
let $e := <E>abc</E> update { replace value of node . with ./data() || "def" }
return ( $e, $e/data() )
Result:
<E>abcdef</E>
abc
Expecting:
<E>abcdef</E>
abcdef
[1] attachment: “replace-value-of-bug.xq”
Pleased to hear from you,
Rob Stapper
Sent from Mail for Windows