Project

Profile

Help

Bug #2541

closed

Passing list of packages on Transform command line does not work

Added by Michael Kay over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT 3.0 packages
Sprint/Milestone:
-
Start date:
2015-12-15
Due date:
% Done:

100%

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

Description

Any attempt to pass a list of packages with mutual dependencies on the Transform command line results in the message

Possible circular package dependency

reported here: http://stackoverflow.com/questions/34279317/possible-circular-package-dependency-xslt-3-0

Actions #1

Updated by Michael Kay over 8 years ago

  • Status changed from In Progress to Resolved
  • Fix Committed on Branch 9.7 added

The logic that attempts to find an ordering among the supplied packages, such that if A is dependent on B then B is always compiled before A, is defective. I have rewritten it.

I also found an unrelated problem affecting this use case; when the Source object supplied to XsltCompiler.compilePackage() is a pre-built tree already containing nodes in the form of StyleElement instances, then the Compilation object that these nodes point to is a different Compilation object from the one used by compilePackage(), resulting in a later NullPointerException when searching for the PrincipalStylesheetModule.

Patch committed (for the 97 branch) and tested for this test case; needs wider regression testing.

Actions #2

Updated by O'Neil Delpratt over 8 years ago

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

Bug fix applied in the Saxon 9.7.0.2 maintenance release

Actions #3

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF