Hi Mark,
Thank you Christian, for all the prompt replies. It looks like I got it working using *:Ontology. I must say I never understood why namespaces must make things so complicated and counterintuitive.
True; this issue is frequently discussed in the W3C, and I guess that most users would have been glad if an easier approach had been taken to tackle namespaces.
Another thing that has put me on the wrong track a couple of times is when I want to check with the BaseX UI tool some results that my program inserts into the database, only to get completely different results than I'd expect. It's as if there's interference between my running program and the BaseX UI tool.
It's important to know – and critical if you use BaseX in a productive environment – that the GUI and the BaseX standalone client are not notified if another BaseX instance modifies an opened database.
Christian