Support #5864
closedUsing XSLT packages in a jar file
0%
Description
For the project I am working on my entire code needs to be bundled in a jar file.
The Saxon configuration file is in the resources folder in the jar. (See attached screenshot jar-resources.gif.)
The packages are in a subfolder "packages".
The config file references the packages with a relative path, e.g.
<package name="http://www.oup.com/xsltPackages/logger" version="1.0" sourceLocation="packages/logger.xsl"/>
When I run the application I get an error saying that the package could not be located:
I/O error reported by XML parser processing file:/C:/SVN/software/Atlas/BITS2MARC/MARC_creator/packages/logger.xsl: C:\SVN\software\Atlas\BITS2MARC\MARC_creator\packages\logger.xsl (The system cannot find the path specified)
The application is looking outside the jar for the packages even though the config file is being read from within the jar.
Is there a way of writing the element so that the packages are picked up from the resources folder in the jar?
Files
Please register to edit this issue