saxon:compile-stylesheet

Creates a compiled stylesheet that can subsequently be used as input to saxon:transform()

compile-stylesheet($stylesheet as document-node(), $precision as xs:integer) ➔ jt:javax.xml.transform.Templates

Arguments

 

$stylesheet

document-node()

The document containing the XSLT stylesheet

 

$precision

xs:integer

The required precision

Result

jt:javax.xml.transform.Templates

Details

Namespace: http://saxon.sf.net/

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).

See also:

saxon:transform()