> My encoding is CP1251 The encodings for the source and stylesheet inputs are handled by the parser (probably Xerces). I have a feeling, since this is a Java encoding name instead of an ISO name, a switch needs to be thrown to allow java encodings to be used (strictly speaking, I suspect this is not legal XML).
I have set org.apache.xalan.xpath.xdom.XercesLiaison.parse to do: parser.setFeature("http://apache.org/xml/features/allow-java-encodings", true); (but haven't checked it in yet). The fact that we don't have a parameterized parser instance disallows you to be able to do this yourself from your calling program. (Doing a parameterized parser instance is problematic because of xsl:include, which must be called while the other parser is still running). -scott "Victor Smirnov" To: <xalan-dev@xml.apache.org> <[EMAIL PROTECTED] cc: (bcc: Scott Boag/CAM/Lotus) u> Subject: doesn't work with encoding CP1251 01/13/00 07:32 AM Please respond to xalan-dev Hello I'm using Xalan 0.19.1. When i run example simple\transform i've got exception: Exception in thread "main" java.lang.NullPointerException at org.apache.xalan.xpath.xml.FormatterToXML.init(FormatterToXML.java:430) at org.apache.xalan.xslt.StylesheetRoot.makeSAXSerializer(StylesheetRoot.java:5 27) at org.apache.xalan.xslt.StylesheetRoot.process(StylesheetRoot.java, Compiled Code) at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java, Compiled Code) at transform.main(transform.java:81) My encoding is CP1251 (this is file.encoding property). When i set this property to something else, for instance UTF8, this example runs correctly. (command line - java -Dfile.encoding=UTF8 transform) I picked up the file C:\Apache\xalan_0_19_1\src\org\apache\xalan\xpath\xml\FormatterToHTML.java and found out that it didn't contain any reference to encoding Cp1251 I feel like this encoding is just missing :-( Victor p.s. don't hesitate to ask any additional information