Project

Profile

Help

Bug #5384

closed

Uncaught TypeError: Cannot read properties of null (reading 'hashCode')

Added by Oleksii Sapov over 2 years ago. Updated over 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
XSLT Conformance
Sprint/Milestone:
Start date:
2022-03-11
Due date:
% Done:

0%

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

Description

I get this error in Chrome console:

When executing this code:


var options = {
      stylesheetLocation: pathToXsl,
         sourceText: xmlString,    
           stylesheetParams: {"source": "source_A"},
         destination: "document"
}

var result = SaxonJS.transform(options);

I use Saxon-JS 2.3

SEF is generated using xslt3 running on Node.js version v14.17.3.

I can run the XSLT with Saxon 9.8.12-EE in oXygen 20.1 with no problem; same for XSpec. In the attachement are all needed files. In addition, I copied the value of var xmlString to a text file. I tried to comment out the xi:include and xsl:import statements (the SEF in the folder is generated with this state). I can run other SEF in this environment with success, so it is something with XSLT compilation.

Originally posted on StackOverflow: https://stackoverflow.com/questions/71411913/uncaught-typeerror-cannot-read-properties-of-null-reading-hashcode-saxonjs


Files

origScoring.zip (476 KB) origScoring.zip source files Oleksii Sapov, 2022-03-11 09:54
xmlStr.txt (1.14 MB) xmlStr.txt Value of the variable xmlStr Oleksii Sapov, 2022-03-11 09:58
modules.zip (723 Bytes) modules.zip identity-trnasform template Oleksii Sapov, 2022-03-11 11:14
input-sample1.xml (1.12 MB) input-sample1.xml Martin Honnen, 2022-03-23 22:02

Please register to edit this issue

Also available in: Atom PDF Tracking page