I am relatively new to eclipse, but I have spent the last few hours
searching for the solution to this problem.
1)I recently downloaded the saxon 126.96.36.199 jar files to use xslt.
2)I put them in my ..\sun\saxon directory.
3)I added the libraries by doing project->properties->java build
path->libraries->add external jars...
4)All the saxon8.jar files show up (9 of them). I went to Order and Export
tab and selected all 9 of the saxon8.jar files (they are the last items
below the src and Jre1.6.0_03).
5)project->properties->Run/Debug Settings->Stylizer->Classpath->Add External
JARs... also added the 9 saxon8.jar files. (Stylizer is the name of the
class file with the main function, also the only java file currently in my
6)Inside of Stylizer.java I added "import net.sf.saxon.*;". (The
intellisense eclipse ability finds this package and doesn't complain about
me adding it.)
7)I have a line "TransformerFactory tFactory =
Eclipse complains: "net.sf.saxon cannot be resolved to a type". I tried
simplifying this java file to only contain this line, and I still got the
The source code I am modifying is from:
--On Friday, November 02, 2007 04:36:34 PM -0500 Matthew Vagnoni wrote:
> 7)I have a line "TransformerFactory tFactory =
You left out the 'new' keyword:
TransformerFactory tFactory = new net.sf.saxon.TransformerFactoryImpl();
Hewlett-Packard Limited. Registered No: 690597 England
Registered Office: Cain Road, Bracknell, Berks RG12 1HN