
Hi Radu, thanks. Plugin would perhaps work but it seemed too complicated for my use case. However I was able to use Schematron QuickFix for the same purpose as a refactoring action and for QuickFix I was able to register JAR library and call it from XSLT function used in Schematron. Have a nice day, Jirka On 15.10.2024 7:45, Oxygen XML Editor Support (Radu Coravu) wrote:
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@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------