Hi Lionel,

In the Preferences->"XML / XSLT-FO-XQuery / XPath" page there is a prefix-namespace mapping list. That list of mappings is given to the Saxon processor when it applies the XQuery operation.

For example if in that list of mappings you bind a prefix like "stuff" to the XML namespace "http://www.w3.org/2000/xmlns/"; Saxon will report this error because the XML namespace can only be bound to the "xml" prefix. Or if you bind a prefix called "xmlns" to any namespace... So possibly you have something similar in your mapping list. You can try to use "Restore defaults" in the preferences page.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 7/11/2017 12:52 PM, Lionel MOIZEAU wrote:
Of course, it is attached. It is the one in the Oxygen installation folder.

Lionel MOIZEAU
Head of Technical Information Department

L-Acoustics
Tel : +33 1 69 63 23 99

www.l-acoustics.com
-----Message d'origine-----
De : [email protected] [mailto:[email protected]]
Envoyé : mardi 11 juillet 2017 11:51
À : Lionel MOIZEAU <[email protected]>
Cc : '[email protected]' <[email protected]>
Objet : Re: [oXygen-user] Fatal error when using refactoring action

Could you post your insert-element.xq ?

Best,
Christophe

Le 2017-07-11 11:46, Lionel MOIZEAU a écrit :
Hi,

When I use a refactoring action such as Insert element, I get the
following error !

DESCRIPTION

java.lang.IllegalArgumentException: Misdeclaration of xmlns namespace

SEVERITY

Fatal

SYSTEM ID

C:\Program Files\Oxygen XML Editor 19\refactoring\insert-element.xq
[1]

With the following trace.

java.lang.IllegalArgumentException: Misdeclaration of xmlns namespace

         at
net.sf.saxon.query.StaticQueryContext.declareNamespace(StaticQueryCont
ext.java:750)


         at
net.sf.saxon.s9api.XQueryCompiler.declareNamespace(XQueryCompiler.java
:365)


         at ro.sync.exml.xmlrefactory.c.c.d.p(Unknown Source)

         at ro.sync.exml.xmlrefactory.c.c.d.g(Unknown Source)

         at ro.sync.exml.xmlrefactory.c.d.k(Unknown Source)

         at ro.sync.exml.xmlrefactory.c.c.c(Unknown Source)

         at ro.sync.exml.xmlrefactory.c.c.b(Unknown Source)

         at ro.sync.exml.xmlrefactory.ui.i.j(Unknown Source)

         at ro.sync.exml.xmlrefactory.ui.i.k(Unknown Source)

         at ro.sync.exml.xmlrefactory.ui.i.i(Unknown Source)

         at ro.sync.exml.xmlrefactory.ui.i$_b.rhe(Unknown Source)

         at ro.sync.ui.application.nb.run(Unknown Source)

I tried to add a <test> element under the <foo> element in a file like
this:

<?xml version="1.0" encoding="UTF-8"?> <root>
    <foo/>
</root>

Can you help me?

Best regards,

Lionel MOIZEAU
Head of Technical Information Department

L-ACOUSTICS
Tel : +33 1 69 63 23 99

www.l-acoustics.com [2]

Links:
------
[1]
file:///C:\Program%20Files\Oxygen%20XML%20Editor%2019\refactoring\inse
rt-element.xq
[2] http://www.l-acoustics.com/
_______________________________________________
oXygen-user mailing list
[email protected]
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
.oxygenxml.com%2Fmailman%2Flistinfo%2Foxygen-user&data=02%7C01%7Clione
l.moizeau%40l-acoustics.com%7C85963b803c9e489b3f3208d4c8425611%7C68e43
1e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353634615231909&sdata=fwpDsTi
oz8WrcornBBzZ1kt8IDy4XNcZkPJgQtPyFNY%3D&reserved=0


_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to