A couple of random ideas about:
---- you "Bruce E. Sturgen" <[EMAIL PROTECTED]> wrote ----
> Moving to Xalan 2 I now use StreamSource, Transformer, and
> TransformerFactory. My code for loading the XSL file looks like:
> String xslFile =
> event.getConfig().getServletContext().getInitParameter("xsl.document");
> TransformerFactory factory = TransformerFactory.newInstance();
> transformer = factory.newTransformer(new StreamSource(xslFile));
> My source code using Xalan 1 works fine, and has for about 8 months.
> With Xalan 2, OTOH, I get the following error:
> javax.xml.parsers.ParserConfigurationException: Namespace not supported
> by SAXParser
Here's an old proto-FAQ 0.3 answer to a similar problem:
"Q-: I'm getting a "Namespace not supported by SAXParser" exception -
what's
wrong?
Q-: I'm getting a an error about my stylesheet missing the xsl:version
attribute - what's wrong?
*Q-: My DOMSource can't be built/transformed - what's wrong?
A: Make sure you have a namespace-aware parser configured. Some parsers
support namespaces by default, some you have to ask for support. Try
adding something like the second line here:
javax.xml.parsers.SAXParserFactory factory =
javax.xml.parsers.SAXParserFactory.newInstance();
factory.setNamespaceAware(true); // Xerces needs this set"
Yes, StreamSource does support http:, or at least as much as your
underlying JDK supports URLs of that type.
Are you sure you're using the same environment for this app as you were
before? (Besides updating your xalan and parser builds) Which parser are
you using, anyway - the call stack shows com.sun.xml.parser.something - is
that what you expected?
- Shane