fn:transform

Invokes a transformation using a dynamically-loaded XSLT stylesheet.

transform($options as map(*)) ➔ map(*)

Arguments

 

$options

map(*)

The input options for the transformation

Result

map(*)

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

XPath 4.0 Functions and Operators

Saxon availability

Available in XPath 3.1, XSLT 3.0, XQuery 3.1, and later versions. From Saxon 9.8, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.7. Available for all platforms.

Notes on the Saxon implementation

Available since Saxon 9.7. The input options available are listed in the specification, with the additions and caveats noted below.

The following options are available:

To enable use of XSLT 4.0 features in the called stylesheet, it is not enough simply to set xsl:stylesheet/@version="4.0" in the called stylesheet module. Instead, you need to do two things:

  1. Ensure that 4.0 is enabled in the calling stylesheet (or query)

  2. Use the option xslt-version="4.0" in the options passed to the fn:transform call.