Project

Profile

Help

Bug #4990

saxon-js 2.2 no longer reads stylesheet URIs from web context

Added by John Dziurlaj about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2021-05-14
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

I am working on upgrading a project from SaxonJS 2.0 to 2.2. However, when upgrading this webpack project, I am getting an error regarding the resolution of the stylesheet, which is passed via URI:

[10:32:49 AM] uncaught exception: XError:Failed URI resolution: href=xslt/cvr_v1_json2xml.sef.json base=undefined -- TypeError: k is not a constructor; code:FODC0005

   saxon.transform({
            sourceText: wrappedJson,
            stylesheetLocation: `xslt/${sefFile}`,
            initialTemplate: "start",
            destination: "application"
        }, cb);

I have checked by entering the SEF URL manually, and it resolves (Firefox and Chrome).

(see cdftransformer.ts) Full codebase here

History

#1 Updated by Norm Tovey-Walsh about 1 month ago

I did some testing with Webpack in the course of investigating the global object bug. I would have said that we have tests that cover this case, but perhaps I'm mistaken. We'll take a look as soon as possible. Apologies for the inconvenience.

Please register to edit this issue

Also available in: Atom PDF Tracking page