Project

Profile

Help

Bug #3935

closed

command line catalog option

Added by Henrik Ryom over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
-
Start date:
2018-10-02
Due date:
% Done:

100%

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

Description

When running xslt from the command line I have to set more than one catalog file using the catalog option. The documentation tells that this is either a file name or a list of file names separated by semicolons. The last solution does not seem to work. (I'm using EE 9.8.0.12 on MacOS)


Related issues

Related to Saxon - Bug #5002: Catalog issue in SAXON-HE 9.8.0.14JDuplicateNorm Tovey-Walsh2021-05-26

Actions
Actions #1

Updated by Michael Kay over 5 years ago

Yes, you're right. In general, a list of filenames isn't going to work, because before putting the supplied value in the xml.catalog.files system property, we try to resolve/expand the file name, and this code treats it as a single name.

I will review whether we should change the code to match the documentation or vice versa.

Actions #2

Updated by Michael Kay over 5 years ago

  • Category set to Command Line
  • Status changed from New to Resolved
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal
  • Applies to branch 9.8, 9.9 added
  • Fix Committed on Branch 9.8, 9.9 added

I have patched 9.8 and 9.9 (CommandLineOptions.java) so that it does what the documentation says. The supplied value of the -catalog option is now split on semicolon boundaries and each filename is processed independently; the expanded names are concatenated into a single string which is placed in the xml.catalog.files.

Note that semicolon is used as the separator regardless of operating system.

Actions #3

Updated by O'Neil Delpratt over 5 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.8.0.15 added

Bug fix applied in the Saxon 9.8.0.15 maintenance release. Leave open to the Saxon 9.9 maintenance release.

Actions #4

Updated by O'Neil Delpratt over 5 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.9.0.2 added

Bug fix applied in the Saxon 9.9.0.2 maintenance release.

Actions #5

Updated by Michael Kay over 2 years ago

  • Related to Bug #5002: Catalog issue in SAXON-HE 9.8.0.14J added

Please register to edit this issue

Also available in: Atom PDF