Project

Profile

Help

Bug #4978

closed

a.ha is not a function

Added by Martynas Jusevicius about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2021-04-26
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

I'm trying to make the SEF compilation dynamic but I'm not sure I'm using transform() right. Anyway here it is:

<script type="text/javascript">
    <![CDATA[
        window.onload = function() {
            console.log(SaxonJS.getProcessorInfo().productName + " " +
            SaxonJS.getProcessorInfo().productVersion + " " + SaxonJS.getProcessorInfo().releaseDate);
            SaxonJS.XPath.evaluate('transform(map{ "stylesheet-location": "test-pi.xsl", "initial-template": "main" })');
        }
    ]]>
</script>
Can be seen in https://namedgraph.github.io/saxon-js2-test/bootstrap2.xsl which is used as the `xml-stylesheet` processing instruction to bootstrap Saxon-JS.

Which produces an error:

SaxonJS2.rt.js:574 Uncaught TypeError: a.ha is not a function at SaxonJS2.rt.js:574 at h (SaxonJS2.rt.js:568) at transform (SaxonJS2.rt.js:574) at SaxonJS2.rt.js:633 at Object.a [as evaluate] (SaxonJS2.rt.js:592) at Object.evaluate (SaxonJS2.rt.js:790) at window.onload (test-pi2.xml:7)

Can be seen in the console log of https://namedgraph.github.io/saxon-js2-test/test-pi2.xml

Please register to edit this issue

Also available in: Atom PDF Tracking page