
Hi Radu, It was the problem ! Xmlns was bound to « namespace.uri » … Removing that solved the problem. Thanks ! [cid:image001.png@01D2FAF6.6F9C78B0] Lionel MOIZEAU Head of Technical Information Department L-Acoustics Tel : +33 1 69 63 23 99 www.l-acoustics.com -----Message d'origine----- De : oXygen-user [mailto:oxygen-user-bounces@oxygenxml.com] De la part de Oxygen XML Editor Support (Radu Coravu) Envoyé : mardi 11 juillet 2017 12:40 À : oxygen-user@oxygenxml.com Objet : Re: [oXygen-user] Fatal error when using refactoring action 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 "https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2000%2Fxmlns%2F&data=02%7C01%7Clionel.moizeau%40l-acoustics.com%7Cfb8c77f02fd54f1a754b08d4c849401f%7C68e431e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353664314495987&sdata=8FBlmWWfu%2BiVi%2BgVmu441Rc4%2FC8Za%2FNElwoZK%2B5aubU%3D&reserved=0" 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 https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oxygenxml.com&data=02%7C01%7Clionel.moizeau%40l-acoustics.com%7Cfb8c77f02fd54f1a754b08d4c849401f%7C68e431e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353664314495987&sdata=M5gl4JcKu%2BP264CkZ%2FrCPnc9GjJQG1iU5lcyVv12H9A%3D&reserved=0 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<http://www.l-acoustics.com>
-----Message d'origine-----
De : cmarchand@oxiane.com<mailto:cmarchand@oxiane.com> [mailto:cmarchand@oxiane.com] Envoyé : mardi
11 juillet 2017 11:51 À : Lionel MOIZEAU
<lionel.moizeau@l-acoustics.com<mailto:lionel.moizeau@l-acoustics.com>> Cc : 'oXygen-user@oxygenxml.com'
<oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>> 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(StaticQueryCon
t
ext.java:750)
at
net.sf.saxon.s9api.XQueryCompiler.declareNamespace(XQueryCompiler.jav
a
: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<http://www.l-acoustics.com> [2]
Links:
------
[1]
file:///C:\Program%20Files\Oxygen%20XML%20Editor%2019\refactoring\ins
e
rt-element.xq
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
w
.oxygenxml.com%2Fmailman%2Flistinfo%2Foxygen-user&data=02%7C01%7Clion
e
l.moizeau%40l-acoustics.com%7C85963b803c9e489b3f3208d4c8425611%7C68e4
3
1e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353634615231909&sdata=fwpDsT
i
oz8WrcornBBzZ1kt8IDy4XNcZkPJgQtPyFNY%3D&reserved=0
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
w.oxygenxml.com%2Fmailman%2Flistinfo%2Foxygen-user&data=02%7C01%7Clio
nel.moizeau%40l-acoustics.com%7Cfb8c77f02fd54f1a754b08d4c849401f%7C68
e431e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353664314495987&sdata=p59
7U3Ty%2FnypcQA6MUSmkXSNbA%2Bv02YLJB%2FqiMgkNUM%3D&reserved=0
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.oxygenxml.com%2Fmailman%2Flistinfo%2Foxygen-user&data=02%7C01%7Clionel.moizeau%40l-acoustics.com%7Cfb8c77f02fd54f1a754b08d4c849401f%7C68e431e8d632483eae79f28a7b4c69e6%7C1%7C0%7C636353664314495987&sdata=p597U3Ty%2FnypcQA6MUSmkXSNbA%2Bv02YLJB%2FqiMgkNUM%3D&reserved=0