Page 1 of 1

XSLT operation on root element in Author mode?

Posted: Thu Dec 04, 2014 6:15 pm
by stdu
Hi,

I've created a XSLT to change an attribute in the root element of a XML file. With a manual transformation all works fine. But I wanted this XSLT fired in Author mode by a XSLT action (ro.sync.ecss.extensions.commons.operations.XSLTOperation). By trying this I got a message from oXygen: "Kann keine Elemente oder Text au├čerhalb des Rootelements hinzuf├╝gen" (in englisch perhaps "Can't add elements or text outside of the root element". There is no way to work around this problem, isn't it?

Thx & kind regards,
Stefan

Re: XSLT operation on root element in Author mode?

Posted: Fri Dec 05, 2014 2:50 pm
by Radu
Hi Stefan,

In Oxygen 16.0 we added a fix to the operation which should allow you to replace the root element.
So if you are using Oxygen 16.0 or newer and you still have the problem, please give us more details about the parameters you pass to the operation.

Regards,
Radu

Re: XSLT operation on root element in Author mode?

Posted: Fri Dec 05, 2014 6:32 pm
by stdu
Hi Radu,

thank you very much for the hint! We're currently using version 14.2 in this project, perhaps we have to update to version 16.1, if this is solved there.

Kind regards,
Stefan

Re: XSLT operation on root element in Author mode?

Posted: Mon Dec 08, 2014 9:29 am
by Radu
Hi Stefan,

To make sure you can use a trial license to test the framework in 16.1 and see how this goes.

Regards,
Radu

Re: XSLT operation on root element in Author mode?

Posted: Thu Dec 11, 2014 5:52 pm
by Patrik
Hi Stefan,

I had the same problem some time ago:
http://www.oxygenxml.com/forum/topic10476.html

If updating to the newer version is no option (for whatever reasons) implementing your own extension bundle could solve the problem as well...

Regards,
Patrik