This tag replaces the x:transform tag and use SAXON XSLT 2.0 processor instead which is more efficient, less memory intense and faster. Not to mention 2.0 compliant. The tag incorporates caching of stylesheets etc.


Name Required Default Type Description
id true    Object/String The result is stored in this variable.
xmlFile false    Object/String The full xml file path.
xmlString false   Object/String The xml as a string.
source false   Object/String The xml as a source.
styleFile false   Object/String The full style file path.
styleString false   Object/String The style as a string.
cacheStyle false true boolean State if the xslt should be cached. Consumes memory so keep down the number of cached templates.
outputFormat false "string" Object/String The output format. (document, tinyDocument, string)

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


This example transforms a xml with the xsl and prints the result on the webpage.
<common:XSLTransform id="resultString" xml="${xmlString}" styleString="${xslString}"/>
Result was: <br/><c:out value="${resultString}" escapeXml="false"/><br/>

comments powered by Disqus