SAXONICA |
saxon:compile-stylesheet($stylesheet as document-node()) ==> jt:javax.xml.transform.Templates
This function takes as input a document containing an XSLT stylesheet, and produces as output a compiled stylesheet suitable for use with the saxon:transform() extension function.
The document node can be supplied as a call on the doc()
function to read the stylesheet
from filestore (or from a remote URL), or it can be a variable containing a stylesheet that has been constructed
programmatically. If the document contains any xsl:include
or xsl:import
declarations these will be resolved in the usual way (relative to the base URI of the element that contains them).