12. Compiling XSL to SEF (1/3)

There are two ways to generate SEF files:

  1. Use the Java Saxon-EE product:

    java com.saxonica.Transform -xsl:style.xsl \
         -export:output.sef.json \
         -target:JS -nogo -relocate:on -ns:##html5
    

    For the purpose of this tutorial, there is a Saxon-EE license in the lib/ directory. It’ll expire in a few days.

  2. Use xslt3.js on Node.js:

    node node_modules/xslt3/xslt3.js -xsl:style.xsl \
         -export:output.sef.json \
         -nogo -ns:##html5
    

    Using the Node.js version of SaxonJS doesn’t require a license.