S
Symon
Hello,
I have a little problem using the xsl:import tag with Xalan in a JAR
packaged application. All my application is packaged inside one JAR,
containing all classes and ressources.
My XSL transformation works well, but if I try to import a "common.xsl"
file which is inside my JAR, Xalan can't find it.
Since Xalan uses Java URL class, I already tried complicated URL like
jar:file://appli.jar!/ressources/common.xsl which works in my java
application, but not inside a xsl:import url ...
Temporaly, my workaround is to copy all necessary ressources in a temp
directory before launching my transformation, but I can't let this code
like that.
The solution can't be to use an absolute located jar, like
jar:file:///home/symon/myjar.jar!/ressources/common.xsl : it works, but
the app will be moved frequently, and run in different environments.
Thanks for suggestion.
Symon
I have a little problem using the xsl:import tag with Xalan in a JAR
packaged application. All my application is packaged inside one JAR,
containing all classes and ressources.
My XSL transformation works well, but if I try to import a "common.xsl"
file which is inside my JAR, Xalan can't find it.
Since Xalan uses Java URL class, I already tried complicated URL like
jar:file://appli.jar!/ressources/common.xsl which works in my java
application, but not inside a xsl:import url ...
Temporaly, my workaround is to copy all necessary ressources in a temp
directory before launching my transformation, but I can't let this code
like that.
The solution can't be to use an absolute located jar, like
jar:file:///home/symon/myjar.jar!/ressources/common.xsl : it works, but
the app will be moved frequently, and run in different environments.
Thanks for suggestion.
Symon