Project

Profile

Help

Bug #5008

closed

SaxonJS: Import XSLT2 from XSLT2 error

Added by Daniel Naab over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XX compiler
Sprint/Milestone:
-
Start date:
2021-05-27
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:
Alexander Stein - QN-C
Contact person:
Alexander Stein - QN-C
Additional contact persons:
-

Description

With SaxonJS 2.2.0, given XSL v1, that imports v2, the following error is received:

Transformation failure: Error SESU0013 Serializer does not support the requested XML version: 2.0

This same set of files may be processed without error using Saxon-HE. Note: this error was encountered with the Schematron pipeline implemented here: https://github.com/18F/fedramp-automation/blob/master/resources/validations/bin/validate_with_schematron.sh

For a minimal reproduction, see here: https://github.com/danielnaab/xslt3-import-bug-repro

The details in the repro are below, for reference:

npx xslt3 -s:./source.sch -xsl:transform.xsl -o:./output.xsl

source.sch:

<?xml version="1.0" encoding="UTF-8"?>
    <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
</sch:schema>

XSL:

transform.xsl:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:import href="import.xsl" />
</xsl:stylesheet>

import.xsl:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:output />
</xsl:stylesheet>

Please register to edit this issue

Also available in: Atom PDF Tracking page