Changes

Jump to navigation Jump to search
424 bytes removed ,  07:56, 5 June 2012
==xslt:transform==
{|width='100%'
|-
| width='90' | '''Signatures'''
* {{Code|xs:string}}, containing the document in its string representation, or
* {{Code|node()}}, containing the document itself.
The {{Code|$params}} argument can be used to bind variables to a stylesheet. It , which can either be specified as<br />* as children of an {{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; e.g.:<br /pre class="brush:xml">{{Code|&lt;<xslt:parameters&gt;> <br/>&nbsp;&nbsp;&lt;xslt:key1&gt;value='value1&lt;/xslt:key1&gt;<br'/>&nbsp;&nbsp; ...<br/>&lt;/xslt:parameters&gt;}}></pre>* [[Map Module|as map structure]]: , which contains all parameters can be directly represented as key/value pairs:<br /><codepre class="brush:xml">map { "key1" := "value1", ... }</codepre><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