Hello!
 
I'm developing an XML/Java project(servlets generate dynamic XML then transform the XML to html, wml, etc.).
At the start I decided to use Xalan for my Java applications, since my the servlet-container is TomCat(supports Xalan). When the main block of XSLT was ready (I tested them with Saxon, from the command line), I was then shocked when knew that Xalan doesn't support node-sets (I used the feature many times in my stylesheets, since it worked with Saxon). Then, I changed the code and used xalan:nodeset() function in my XPath expressions. But it also did not work.
After that I decided to turn to Saxon (still having TomCat).
 
I set the property "javax.xml.transform.TransformerFactory" properly:
 
System.setProperty("javax.xml.transform.TransformerFactory", "com.icl.saxon.TransformerFactoryImpl");
 
but the servlet generates the following error:
 
2002-09-30 18:56:28 - Ctx( /CMWebApp ): Exception in: /CMWebApp/usermodule/en/html/welcome - java.lang.NoSuchMethodError
 at com.icl.saxon.TransformerFactoryImpl.getStyleParser(TransformerFactoryImpl.java:500)
 at com.icl.saxon.TransformerFactoryImpl.getSAXSource(TransformerFactoryImpl.java:184)
 at com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:124)
 at com.icl.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:77)
 at cm_application.Welcome.doGet(Welcome.java:338)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)
 
 
I have Saxon 6.3.
 
My TomCat is configured with following set of archives:
lib/webserver.jar;
lib/jasper.jar;
lib/parser.jar;
lib/jaxp.jar
 
 
I can't see any way now. May be it's a result of conflict of TomCat and Saxon? Or something is wrong with classpath(conflict of JAXP1.0 and JAXP1.1)?
I tried but without result.
 
Thanks in advance.
 
Armen Martirossian
Hiweb
Yerevan, Armenia