Instead of using *XQuery*<XX> as the name for the result buffer, with a new name assigned to each evaluation, the result buffer should be named after the XQuery buffer that has been evaluated (i.e. *XQuery-result-<name-of-xquery-buffer>*) and be overwritten for each evaluation.
Instead of using
*XQuery*<XX>
as the name for the result buffer, with a new name assigned to each evaluation, the result buffer should be named after the XQuery buffer that has been evaluated (i.e.*XQuery-result-<name-of-xquery-buffer>*
) and be overwritten for each evaluation.