I could resolve the problem by removing parser.jar and jaxp.jar from tomcat
lib directory. It solved the problem for me.
It appered to me the problem was due to some multiple parser API conflict.
Good luck.
-Anand
----- Original Message -----
From: "Gerald Rudolph (Jerry)" <[EMAIL PROTECTED]>
To: "Anand T" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 5:17 PM
Subject: Re: configuring for xalan
> I am having the same problem but am running the code in a servlet rather
> than a JSP page. I have not yet figured out why I am getting the error.
> However, I do not get the error when I run the same code, accessing the
> same xml/xsl files through a java application rather than a servlet.
>
> Jerry
>
> ----- Original Message -----
> From: "Anand T" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 24, 2001 11:14 AM
> Subject: configuring for xalan
>
>
> HI All,
> I am trying to configure xalan to use with Tomcat 3.2.3.
> I downloaded xalan-j_2_2_D10 and added xalan.jar, xerces.jar
> xalanservlet.jar and xalansamples.jar to the class path in tomcat.bat
> Thats pretty much i have done.
>
> When i am trying to run a sample transform jsp i am getting the following
> error. I appreciate if anyone could point me to figure the problem.
>
> JSP:
> --------------------------------------------------------------------
> <%@ page import="java.util.*, java.io.*,java.net.URL" isErrorPage="false"
> %>
> <%@ page import="javax.xml.transform.TransformerFactory"%>
> <%@ page import="javax.xml.transform.Transformer" %>
> <%@ page import="javax.xml.transform.Source" %>
> <%@ page import="javax.xml.transform.stream.StreamSource" %>
> <%@ page import="javax.xml.transform.stream.StreamResult" %>
>
> <%
> try
> {
> TransformerFactory tFactory = TransformerFactory.newInstance();
> // Get the XML input document and the stylesheet.
> Source xmlSource = new StreamSource(new
> URL("http://localhost:8080/examples/jsp/todo.xml").openStream());
> Source xslSource = new StreamSource(new
> URL("http://localhost:8080/examples/jsp/todo.xsl").openStream());
> // Generate the transformer.
> Transformer transformer = tFactory.newTransformer(xslSource);
> // Perform the transformation, sending the output to the response.
> transformer.transform(xmlSource, new StreamResult(out));
> }
> catch (Exception e)
> {
> out.write(e.getMessage());
> // e.printStackTrace(out);
> }
> %>
> --------------------------------------------------------------------
>
> Out put in the browser...:
> --------------------------------------------------------------------
> Namespace not supported by SAXParser
> --------------------------------------------------------------------
>
> My todo.xsl starts like this
> --------------------------------------------------------------------
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:variable name="title" select="concat(todo/@project, ' ',
> todo/@major-version)"/>
> <xsl:template match="/">
> --------------------------------------------------------------------
>
>
> What is it complaining about and why is it using SAX parser???
>
> -Anand
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
>