I have the following JSP that is using the xml tablib from jstl to do a 
transformation.  The xsl that I am using has "<xsl:import>" tags that are used to 
import other needed xsl documents.  The import in main xsl works correctly, but the 
file it imports also does an import.  This import causes the error below to occur.  I 
thought I needed to use the xsltSystemId attribute, but this did not work(see the 
commented out lines below).

Please help. I have spent a lot of time going throught documentation.  I think this is 
just a lack of knowledge on my part. 

JSP Page
=======
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>

<c:import url="/xml/aaronjackson.xml" var="xml"/>
<c:import url="/xsl/output/us-html.xsl" var="xslt"/>
<!--<x:transform xml="${xml}" xmlSystemId="file:///C:/Program Files/Apache 
Group/Tomcat 4.1/webapps/aaronjackson/xml/aaronjackson.xml" xslt="${xslt}" 
xsltSystemId="file:///C:/Program Files/Apache Group/Tomcat 
4.1/webapps/aaronjackson/xsl/output/us-html.xsl"/>-->
<!--<x:transform xml="${xml}" xmlSystemId="/xml/aaronjackson.xml" xslt="${xslt}" 
xsltSystemId="/xsl/output/params.xsl"/>-->
<x:transform xml="${xml}" xslt="${xslt}"/>

ERROR
=====
org.apache.jasper.JasperException: 
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: 
Could not resolve entity reference: "../params.xsl"

primary xsl is us-html.xsl:

us-html.xsl
=========
  <xsl:import href="../format/html.xsl"/>
  <xsl:import href="../country/us.xsl"/>

us-html.xsl imports this xsl:

html.xsl
=======
  <xsl:include href="../params.xsl"/>

Reply via email to