Project

Profile

Help

Bug #3475

closed

Problem with SEF generated using Oxygen 19.1 "Compile XSLT Saxon 9.8" add-on

Added by David Priest almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2017-10-06
Due date:
% Done:

0%

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

Description

SaxonEE 9.7 and 9.8 when compiling XSL to SEF are behaving differently. Specifically, 9.8 is failing to run:

Salient details following:

In my HTML header:

<script type="text/javascript"> window.onload = function() { SaxonJS.transform({
            stylesheetLocation: "/xsl/kickstart.sef", initialTemplate: "kickstart"
            }); } </script>

In my XSL:

<xsl:transform extension-element-prefixes="ixsl" version="3.0"
    xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template name="kickstart">
        <xsl:message>KICKSTARTED BROWSER</xsl:message>
        <xsl:apply-templates select="ixsl:page()"/>
        <xsl:message>KICKSTOPPED BROWSER</xsl:message>
    </xsl:template>

    <xsl:template match="/html/head/title">
        <xsl:message>MATCHING TITLE</xsl:message>
        <ixsl:set-attribute name="title" select="'SHAZAM!'"/>
    </xsl:template>
</xsl:transform>

Compiling to SEF using the OxygenXML plugin:

With 9.7, success:

[Log] Saxon-JS 1.0.2 in browser (SaxonJS.min.js, line 1)
[Log] Transform options supplied: stylesheetLocation, initialTemplate,  (SaxonJS.min.js, line 1)
[Log] SEF generated by Saxon-EE version 9.7.0.20 with -target:JS -relocate:false (SaxonJS.min.js, line 1)
[Log] xsl:message:  KICKSTARTED BROWSER (SaxonJS.min.js, line 1)
[Log] xsl:message:  MATCHING TITLE (SaxonJS.min.js, line 1)
[Log] xsl:message:  KICKSTOPPED BROWSER (SaxonJS.min.js, line 1)

With 9.8, failure:

[Log] Saxon-JS 1.0.2 in browser (SaxonJS.min.js, line 1)
[Log] Transform options supplied: stylesheetLocation, initialTemplate,  (SaxonJS.min.js, line 1)
[Log] SEF generated by Saxon-EE version 9.8.0.4 with -target:JS -relocate:false (SaxonJS.min.js, line 1)
[Log] xsl:message:  KICKSTARTED BROWSER (SaxonJS.min.js, line 1)
[Error] TypeError: null is not an object (evaluating 't.tagName')
	V (SaxonJS.min.js:3:19218)
	next (SaxonJS.min.js:4:31890)
	next (SaxonJS.min.js:4:31795)
	next (SaxonJS.min.js:4:31795)
	next (SaxonJS.min.js:4:31795)
	next (SaxonJS.min.js:5:3852)
	forEachItem (SaxonJS.min.js:4:30051)
	ot (SaxonJS.min.js:3:23897)
	c (SaxonJS.min.js:1:4675)
	o (SaxonJS.min.js:1:5319)
	(anonymous function) (SaxonJS.min.js:1:6112)
	n (SaxonJS.min.js:1:14209)
	(anonymous function) (SaxonJS.min.js:1:14108)
	onload (SaxonJS.min.js:1:13831)

Files

test.html (448 Bytes) test.html David Priest, 2017-10-15 03:12
test.sef (2.64 KB) test.sef Generated using "Compile XSLT Saxon 9.8" button in Oxygen XML (latest edition) David Priest, 2017-10-15 03:12
test.xsl (590 Bytes) test.xsl David Priest, 2017-10-15 03:12

Please register to edit this issue

Also available in: Atom PDF Tracking page