Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2005, 03:01 AM
Authorized User
 
Join Date: Feb 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to IronStar
Default Had IO Exception with stylesheet file - Help!

Hi,

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,
Tom





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
Java IO error bb1234_00 Java Basics 2 March 26th, 2007 07:25 AM
Change stylesheet file on the server side jdang67 ASP.NET 1.0 and 1.1 Professional 0 October 25th, 2005 10:29 AM
System.IO.FileNotFoundException cuca_macaii2000 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 5th, 2005 10:10 AM
C# File IO IsFileOpen WGP3 C# 4 August 4th, 2004 07:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.