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

Notes on the Saxon implementation

Available since Saxon 9.7. The input options available are listed in the specification.

To specify Saxon configuration options for the transform, the vendor-options parameter can be used. This takes a map as its value, where the keys in the map are the names of configuration options, expressed as a QName in the namespace "http://saxon.sf.net/feature/". For example:

transform( map { "stylesheet-node":$xsl, "initial-template":QName('', 'main'), "vendor-options": map { QName('http://saxon.sf.net/feature/', 'defaultLanguage'):'de', QName('http://saxon.sf.net/feature/', 'timing'):'true' } })

See Configuration Features for possible options.