Project

Profile

Help

Support #5864

closed

Using XSLT packages in a jar file

Added by Mark Dunn about 1 year ago. Updated 10 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-01-31
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

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

jar-resources.gif (10.6 KB) jar-resources.gif Mark Dunn, 2023-01-31 13:56

Please register to edit this issue

Also available in: Atom PDF