Hi, BaseX team. An XSpec user found an error when running a particular test with BaseX. I reproduced the error in its original form, and I also shrunk the reproduction steps to obtain a similar error. The small, self-contained reproduction steps in BaseX 12.2, 12.3, or BaseX124-20260521.170507 are: xquery version "3.1"; declare namespace pfx = "some-uri"; declare function pfx:namespace-node() { 'some result' }; declare function pfx:my-fcn() { Q{some-uri}namespace-node() }; pfx:my-fcn() Error message: [XPST0003] Expecting '}', found '('. It points to the end of the qualified function name Q{some-uri}namespace-node. The error does not occur if I call the function using a prefix pfx:namespace-node() or if I change the function's local name. The original reproduction steps are in https://github.com/xspec/xspec/issues/2354 . In that context, the error does not occur if I change the function's local name in both the XQuery module being tested and the XSpec test file. Thanks, Amanda