On 10/01/2025 09:12, Nico Verwer (Rakensi) wrote:
The default namespace on <gpx> becomes the default namespace in the XPath expression. I am not sure if this is correct, and I have not looked this up in the specification.
Maybe someone who is more knowledgeable can tell if this behaviour is correct. For now, I suggest you use the additional $title variable.
I think what you see is an XQuery 4 change, it should be possible to add a declaration in the query prolog
declare fixed default element namespace "";
to ensure the XPaths inside direct element constructors are not influenced by xmlns declarations on those element constructors but at least in the BaseX fiddle that currently gives an error.