Description
Imported or included xslt stylesheets are not found when using the XSLTResult type.
According to the javadoc for the org.apache.struts2.views.xslt.ServletURIResolver class, the href atttribute on the following xslt element should allow the transformer to retrieve the resource, common.xsl, but Xalan does not find it.
<xsl:include href="response:WEB-INF/xslt/common.xsl"/>
After debugging the struts2 source, the problem is that in the XSLTResult class the URIResolver is not being set on the TransformerFactory instance in the getTemplates() method before the xslt source is processed into a Templates object. I have made and tested this changed in a source build and will try to attach a patch for this fix.
Attachments
Issue Links
- is part of
-
WW-2594 XSL errors in action of type="xslt" generate uncatchable exceptions
- Closed