Changes

Jump to navigation Jump to search
5 bytes removed ,  23:51, 26 May 2012
The {{Code|$params}} argument can be used to bind variables to a stylesheet. It can be specified as
* {{Code|element(xslt:parameters)}}: {{Code|&lt;xslt:parameters/&gt;}} 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|&lt;xslt:parameters&gt;<br/>&nbsp;&nbsp;&lt;xslt:key1&gt;value1&lt;/xslt:key1&gt;<br/>&nbsp;&nbsp;...<br/>&lt;/xslt:parameters&gt;}}
* [[Map Module|map structure]]: all parameters can be directly represented as key/value pairs:<br /><code>Code|map { "key1" := "value1", ... }</code><br/>This variant is more compact, and it facilitates the binding of arbitrary data types. Note that only strings are supported when using Saxon (XSLT 2.0). Next, the map structures are not part of the XQuery language yet, as the standardization is still in progress.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu