6. Transforming documents with XSLT

You can use xslt3.js to transform documents. For example:

$ node node_modules/xslt3/xslt3.js \
  -s:mydoc.xml -xsl:tohtml.xsl -o:mydoc.html

(You can use SaxonJS.transform() directly in your Node.js programs.)

You can use xslt3.js to compile stylesheets into SEF files, as we saw earlier.