saxon:compile-stylesheet
Creates a compiled stylesheet that can subsequently be used as input to
saxon:transform()
.
compile-stylesheet($stylesheet as document-node()) ➔ jt:net.sf.saxon.PreparedStylesheet
Arguments | |||
| $stylesheet | document-node() | The document containing the XSLT stylesheet |
Result | jt:net.sf.saxon.PreparedStylesheet |
Namespace
http://saxon.sf.net/
Saxon availability
Requires Saxon-PE or Saxon-EE.
Notes on the Saxon implementation
Available since Saxon 8.5. This function is obsolescent: it is superseded by the fn:transform() function in XPath 3.1.
Details
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).