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=24640>. 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=24640 Encoding not set for attribute, if there is XPath [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Minor |Normal Status|RESOLVED |REOPENED Component|org.apache.xalan |org.apache.xalan.transformer Resolution|WORKSFORME | ------- Additional Comments From [EMAIL PROTECTED] 2003-11-12 12:15 ------- Part of code TransformerImpl, when I found (?) bug: public String transformToString(ElemTemplateElement elem) throws TransformerException { ElemTemplateElement firstChild = elem.getFirstChildElem(); if(null == firstChild) return ""; if(elem.hasTextLitOnly() && org.apache.xalan.processor.TransformerFactoryImpl.m_optimize) { return ((ElemTextLiteral)firstChild).getNodeValue(); } // Save the current result tree handler. SerializationHandler savedRTreeHandler = this.m_serializationHandler; // Create a Serializer object that will handle the SAX events // and build the ResultTreeFrag nodes. StringWriter sw = (StringWriter) m_stringWriterObjectPool.getInstance(); m_serializationHandler = (ToTextStream) m_textResultHandlerObjectPool.getInstance(); And now m_serializationHandler does not have correct m_encoding value (It's null). And when org.apache.xalan.templates.ElemValueOf executed, ecncoding is null, but string from XPath contains not only latim chars. And error is throwed.
