open class XsltViewResolver : UrlBasedViewResolver
org.springframework.web.servlet.ViewResolver implementation that resolves instances of XsltView by translating the supplied view name into the URL of the XSLT stylesheet.
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
XsltViewResolver() |
open fun setCacheTemplates(cacheTemplates: Boolean): Unit
Turn on/off the caching of the XSLT templates. The default value is "true". Only set this to "false" in development, where caching does not seriously impact performance. |
|
open fun setErrorListener(errorListener: ErrorListener): Unit
Set an implementation of the javax.xml.transform.ErrorListener interface for custom handling of transformation errors and warnings. If not set, a default org.springframework.util.xml.SimpleTransformErrorListener is used that simply logs warnings using the logger instance of the view class, and rethrows errors to discontinue the XML transformation. |
|
open fun setIndent(indent: Boolean): Unit
Set whether the XSLT transformer may add additional whitespace when outputting the result tree. Default is |
|
open fun setOutputProperties(outputProperties: Properties): Unit
Set arbitrary transformer output properties to be applied to the stylesheet. Any values specified here will override defaults that this view sets programmatically. |
|
open fun setSourceKey(sourceKey: String): Unit
Set the name of the model attribute that represents the XSLT Source. If not specified, the model map will be searched for a matching value type. The following source types are supported out of the box: javax.xml.transform.Source, org.w3c.dom.Document, org.w3c.dom.Node, java.io.Reader, java.io.InputStream and org.springframework.core.io.Resource. |
|
open fun setUriResolver(uriResolver: URIResolver): Unit
Set the URIResolver used in the transform. The URIResolver handles calls to the XSLT |