File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes getAssociatedStylesheets failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "getAssociatedStylesheets failed" Watch "getAssociatedStylesheets failed" New topic
Author

getAssociatedStylesheets failed

Andrew Leer
Ranch Hand

Joined: Nov 11, 2003
Posts: 44
I'm doing a tutorial on Dev Shed on the basics of Transformation. All of the examples in the tutorial worked except for the last one that uses a JSP page to transform a stylesheet. I'm using Tomcat 4.0.6 that comes with net beans.
The error that I'm getting is:
javax.xml.transform.TransformerConfigurationException: getAssociatedStylesheets failed
The JSP page is supposed to get the location of the XSL Transformation stylesheet from the XML file on a line like....
<?xml-stylesheet type="text/xsl" href="./addresses.xsl"?>
in the XML file.
I don't understand what is causing it, except that maybe the directory it is searching for the xsl file is not the right one? I don't know. I've tried absolute paths and everything.
Anyway here are the files, the class is contained in /mywebapp/WEB-INF/Classes and the JSP is contained in the same directory as the XML and XSL files.

The XML file....
-------------------------------------------------------


The XSL file
----------------------------------

The JSP File
--------------------------------------

And last but not least...The Class file from WEB-INF/classes

Thanks in advance,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getAssociatedStylesheets failed
 
Similar Threads
org.xml.sax.SAXParseException
URGENT!!!! Xalan problem in Servlet with JRun
use Locale to display information from XML
I'm getting an error about my stylesheet missing the xsl:version attribute
what is the Error Ajith