You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/02/16 13:10:39 UTC

[jira] Resolved: (WW-2334) XSLTResult does not work with stylesheets that use xsl:include or xsl:import

     [ https://issues.apache.org/struts/browse/WW-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2334.
---------------------------

    Resolution: Fixed
      Assignee: Don Brown

Fixed, thanks for the patch!

> XSLTResult does not work with stylesheets that use xsl:include or xsl:import
> ----------------------------------------------------------------------------
>
>                 Key: WW-2334
>                 URL: https://issues.apache.org/struts/browse/WW-2334
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.11
>            Reporter: John Krueger
>            Assignee: Don Brown
>             Fix For: 2.1.1
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.