[oXygen-user] [OXYGEN-20165] Custom Refactoring Operations and using XSLT Java extensions

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Tue Oct 15 00:45:31 CDT 2024


Hello Jirka,

The framework "Classpath" list is used by Oxygen to load JAR libraries 
containing custom Author actions, framework Java extensions. So for now 
we do not use this list of libraries as possible libraries containing 
Java extension code used for XML refactoring scripts.

I added an internal issue for this, pasting the issue ID below for 
future reference:

EXM-54892 XML refactor - allow adding extension functions using 
framework classpath

I think for now in order for the XML refactoring scripts to be able to 
call the Java code, the JAR library would need to be contributed by a 
plugin with scope="global":

https://www.oxygenxml.com/doc/versions/26.1/ug-editor/topics/oxygen-plugin.html

Like this plugin for example:

https://github.com/oxygenxml/oxygenxml.cgm.support/blob/master/plugin.xml

For example you could bundle a plugin with a framework folder inside it 
and distribute it as an add-on to the end user:

https://www.oxygenxml.com/doc/versions/26.1/ug-editor/topics/additional-framework-extension.html

Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/14/24 18:23, Jirka Kosek wrote:
> Hi,
>
> I'm writing Custom Refactoring Operation in XSLT. XSLT code uses Java 
> library for accessing image metadata. When I run transformation 
> locally everything works as expected as long as I add corresponding 
> .jar file as an extension in transformation scenario.
>
> However when I bundle this transformation as a refactoring operation 
> inside framework I'm getting the following error message when 
> operation is invoked "Errors were reported during stylesheet 
> compilation". I suppose that this is caused by missig .jar file to 
> which XSLT code makes calls. I've tried to add this .jar into 
> classpath in "Document Type Associations" on "Classpath" but this 
> hasn't resolved the problem.
>
> Where it is possible to register additional .jar files to be used by 
> refactoring operation implemented in XSLT?
>
> Many thanks in advance,
>
>                 Jirka
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user



More information about the oXygen-user mailing list