Closed Pyork closed 1 month ago
Did you set XSLT.tasks.saxonJar
to the path of your Saxon jar file, as described in https://deltaxml.github.io/vscode-xslt-xpath/run-xslt.html?
Hello Martin, thank you for your kind answer. Yes, I setup XSLT.tasks.saxonJar to the path of all mentioned jar files: /home/user/.vscode/extensions/deltaxml.xslt-xpath-1.5.15/xslt-resources
The bitter truth is that this extention DeltaXML may be meant for semi-professionals working with Windows.
For that reason the Java replica .Net is requested by the bug message: "Error: Could not find or load main class net.sf.saxon.Transform Caused by: java.lang.ClassNotFoundException: net.sf.saxon.Transform
I just wonder why I can't get the Windows extension of Delta XML work though I put the right Saxon jar (saxon-pe-10.9.jar) next to the others with the exact path to the Transform.class as mentioned in the error message.
May you have an idea please? Thank you York
In my understanding XSLT.tasks.saxonJar
needs to point to the Saxon JAR file itself so assuming you have your file saxon-pe-10.9.jar
in the directory /home/user/.vscode/extensions/deltaxml.xslt-xpath-1.5.15/xslt-resources
then you need to set XSLT.tasks.saxonJar
to /home/user/.vscode/extensions/deltaxml.xslt-xpath-1.5.15/xslt-resources/saxon-pe-10.9.jar
.
My fault, you are right. I add the library name to the path and it works. Thank you so much!!! Greetings from Bangkok, may you be happy!!
Hello Community,
on Ubuntu 24.04 with VS Code 1.91.1 and XSLT/XPath for VS Code v1.5.15 the XSLT/XPath extension can't find the right library though I gave the path with Java -cp option.
I checked the libraries and, indeed, the class net.sf.saxon.Transform is missing.
Given libraries in the folder ~/.vscode/extensions/deltaxml.xslt-xpath-1.5.15/xslt-resources: deltaxml-saxon-perf-1.0-SAXON10.jar deltaxml-saxon-perf-1.0-SAXON11.jar deltaxml-saxon-perf-1.0-SAXON12.jar xslt-resources/deltaxml-saxon-perf-1.0-SAXON99.jar ... and they start with com in the class name.
So I put the library with the right class path in this folder and the error remains: saxon-pe-10.9.jar
May somebody drop me a hint please? Thank you York