What does "explicit cast" mean?
... .java:205: Incompatible type for =. Explicit cast needed to convert org.apache.xalan.xslt.XSLTInputSource to org.w3c.dom.Document.
stylesheet = new XSLTInputSource(new FileInputStream(System.getProperty("pb4.home.directory") + "/PBBS_Presentation/meta/xmlapplications/"+ _STYLESHEETFILENAME));
[325 byte] By [
RudiRatte] at [2007-9-26 4:11:19]

sorry dont read all.
it the way your new XSLT... creates an InputSource-object, but stylesheet is a kind of Document, so you have to write
new org.w3c.dom.Document(new XSLT....(...))
maybe the Documentconstructor need some special parameters so you have to cast the Source to the kind of the parameter, may String or something like this
An exemple: the Vector class has a function "public Object get(int index)". This function return an Object. If you try:
<code>
Vector v = new Vector();
v.add(new String("a string));
String str;
str = v.get(0); //Wrong! This function return an Object.
str = (String)v.get(0); //Good. You know that your vector contain a String, then you say to the compiler: "I know that I put an Object in a String, but I know what I do, then shut up."
</code>
Ghys
ghyssi at 2007-6-29 13:16:07 >

Now he complains about the following:
org.apache.jasper.JasperException: Unable to compile class for JSPd:\pirobase\v4\PBBS_Presentation\meta\jsp\scratch\_0002fMESSAGE_0002dBOARD_0002ejspMESSAGE_0002dBOARD_jsp_11.java:196: interface org.w3c.dom.Document is an interface. It can't be instantiated.
I also added (document) afterwards, but still the same problem
stylesheet = (Document) new org.w3c.dom.Document(new XSLTInputSource(new FileInputStream(System.getProperty("pb4.home.directory") + "/PBBS_Presentation/meta/xmlapplications/"+ _STYLESHEETFILENAME)));