https://github.com/danielnaab/xslt3-import-bug-repro
https://github.com/danielnaab/xslt3-import-bug-repro
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielnaab/xslt3-import-bug-repro
- Owner: danielnaab
- Created: 2021-05-27T16:49:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T17:47:35.000Z (about 5 years ago)
- Last Synced: 2025-08-17T01:14:37.556Z (11 months ago)
- Language: XSLT
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# saxon-js bug reproduction
This repository contains a minimal reproduction of a transformation that fails with `saxon-js`, but succeeds with `SaxonHE 10.2`.
Note that this failure appears to have been introduced with `v2.1.0`; however, I do not see an obvious source of the change in the [change log](https://www.saxonica.com/saxon-js/release-notes.xml#2.1).
The notable quality of the transformation is that it is XSLT 1.0, and imports an XSLT 2.0 stylesheet with an `xsl:output` element.
To reproduce, run:
```bash
npx xslt3 -s:./source.sch -xsl:transform.xsl -o:./output.xsl
# or
npm run transform
```
This will produce the error:
```
Transformation failure: Error SESU0013
Serializer does not support the requested XML version: 2.0
Error SESU0013
Serializer does not support the requested XML version: 2.0
npm ERR! code 2
npm ERR! path /Users/dan/src/xslt3-import-bug-repro
npm ERR! command failed
npm ERR! command sh -c xslt3 -s:./source.sch -xsl:transform.xsl -o:./output.xsl
```