Hi, I am trying to figure out how to allow the use of @xml:lang in an .xqm. I've been using it before without the need to add any declaration, but in this case I am getting an error: Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Apple Inc., 1.6.0_65 OS: Mac OS X, i386 Stack Trace: ... I am able to reproduce the error and get rid of it simply by adding or removing @xml:lang attributes in my content. I have attached a simple example, you'll need a db named tests to receive the result. - If you run the .xqm as is, you should get the unexpected error. - If you remove all @xml:lang="en-us" in the function test-nodes:get-trans-units-1(), the result node will be saved in the tests db. What am I missing? -- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com (514) 572-0341