xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27502] New: - bug in org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory
Date Sun, 07 Mar 2004 10:31:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27502>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27502

bug in org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory

           Summary: bug in
                    org.apache.xalan.xsltc.runtime.output.TransletOutputHand
                    lerFactory
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: dignjic@ynet.sk


When i use org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory
to create output to writer code like this
        TransletOutputHandlerFactory tohFactory = 
OutputHandlerFactory.newInstance();
        tohFactory.setOutputType(TransletOutputHandlerFactory.STREAM);
        tohFactory.setEncoding(translet._encoding);//("UTF-8")

        tohFactory.setWriter(out);
        tohFactory.setOutputMethod(translet._method);//("TEXT")
        translet.transform(dom, tohFactory.getSerializationHandler());

I got error after transformation (in input xml are these characters "āŁčŁŁÁÁÁ"0
org.xml.sax.SAXException: Attempt to output character of integral value 352 
that is not represented in specified output encoding of UTF-8.

	void org.apache.xml.serializer.ToTextStream.writeNormalizedChars(char
[], int, int, boolean, boolean)


When I used directly org.apache.xml.serializer.ToTextStream; This error not 
occur.
Code OK:
        ToTextStream result = new ToTextStream();
        result.setEncoding(translet._encoding);
        result.setWriter(out);
        result.setOutputFormat(  
OutputPropertiesFactory.getDefaultMethodProperties(
                        Method.TEXT));
        translet.transform(dom, result);

Mime
View raw message