Project

Profile

Help

Bug #5198

closed

NodeJS run from command-line with '-it:main' arg results in error when using mode="#current"

Added by Philip Fearon almost 3 years ago. Updated over 2 years ago.

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

100%

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

Description

This fails with SaxonJS 2.3 but the same XSLT runs OK using the Java version of Saxon. Here is the SaxonJS standard output:

Saxon-JS
2.3

    ==== Watch Variables ====
      doc:     books
    
Transformation failure: TypeError: Cannot read properties of undefined (reading 'Ib')
Cannot read properties of undefined (reading 'Ib')
The terminal process "npx 'xslt3', '-xsl:/Users/philipf/video-demos/init-template/test.xsl', '-it:main', '-o:/Users/philipf/video-demos/init-template/xslt-out/result1.xml'" terminated with exit code: 2.

The input file 'input.xsl' and the stylesheet file 'test.xsl' are attached. The actual command-liine used is in the error message above.

I'm guessing that the xsl:for-each instruction in test.xsl is not setting the context item required by xsl:copy as one would expect.


Files

test.xsl (1.18 KB) test.xsl stylesheet Philip Fearon, 2022-01-08 11:29
input.xml (64 Bytes) input.xml xml source Philip Fearon, 2022-01-08 11:29

Please register to edit this issue

Also available in: Atom PDF Tracking page