The <code>$params</code> argument can be used to bind variables to a stylesheet. It can be specified as
* <code>element(xslt:parameters)</code>: <code><xslt:parameters/></code> must be used as root element, and the parameters are specified as child nodes, with the element name representing the key and the text node representing the value:<br /><code><xslt:parameters><br/> <xslt:key1>value1</xslt:key1><br/> ...<br/></xslt:parameters></code>
* [[Map_Functions|map structure]]: all parameters can be directly represented as key/value pairs:<br /><code>map { "key1" := "value1", ... </code>}. This variant is more compact, and it facilitates the binding of arbitrary data types. Note, however, that only strings are currently supported when working with Saxon. Next, the map structures are not part of the XQuery language yet, as the standardization is still in progress.
If Saxon is found in the Java classpath, <code>XSLT 2.0</code> is used. Otherwise, Java’s internal <code>XSLT 1.0</code> implementation is used to do the transformation.<br />
|}
</html></pre>
'''Example 3: Assignning Assigning a variable to an XSLT stylesheet'''
'''Query:'''