Had IO Exception with stylesheet file - Help!
I have a stylesheet that produces the main menu for an application I am developing. The application generates the main menu by calling the XSL transformer from a tag in a JSP, and this ran without a problem. I wanted to each page to have a standard app header, so I created a template in a separate stylesheet that can be called from another stylesheet. All stylesheets reside in the same directory. I then included the header in the main menu stylesheet and called its template, and it produces the following error when I run my application:
Had IO Exception with stylesheet file: header.xsl
My application log file shows the following error in addition to the one above:
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\header.xsl (The system cannot find the file specified)
If I change the xsl:include href to explicitly set the actual absolute path, the transformation proceeds without error.
I have worked with XSL before and I never had to specify an absolute path in an xsl:include. Does anyone know what's going on?
I am using the xalan-j_2_6_0 and xerces-2_6_2 jar files in my application. The app runs under Tomcat 5.0.
Thanks in advance for your help,