common:XSLTransformParameter

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.

Parameters

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.

Examples

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}"
styleString="${xslString}">
<common:XSLTransformParameter name=”param1” value=”foo”/>
<common:XSLTransformParameter name=”param2” value=”bar”/>
</common:XSLTransform>

Result was: <br/>

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

 


comments powered by Disqus