You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Victor Smirnov <vi...@uwc.ru> on 2000/01/13 13:32:23 UTC

doesn't work with encoding CP1251

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