This tag lets you set parameters to the transformation process if you use the XSLTransform-tag. Just add the parameters as subtags to the XSLTransform-tag.


Name Required Default Type Description
name true   Object/String The parameter name.
value true   Object/String The parameter value.

ID-result variable contains: A string (or other if specified) with the result of the transformation.


This example transforms a xml with the xsl using two parameters in the process and prints the result on the webpage.

<common:XSLTransform id="resultString" xml="${xmlString}"
<common:XSLTransformParameter name=”param1” value=”foo”/>
<common:XSLTransformParameter name=”param2” value=”bar”/>

Result was: <br/>

<c:out value="${resultString}" escapeXml="false"/><br/>


comments powered by Disqus