DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=26924>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26924

Enhance CIncludeTrasnformer to handle encoding parameter





------- Additional Comments From [EMAIL PROTECTED]  2004-03-17 11:13 -------
So after exploring some more code and some test with Xalan, I found that the
best solution is to remove the Encoding property from the properties given to
startSerializedXMLRecording in the startTransformingElement on "value"

Properties props = XMLUtils.defaultSerializeToXMLFormat(true);
props.remove(OutputKeys.ENCODING);
this.startSerializedXMLRecording(props);

or

Properties props = new Properties();
props.put(OutputKeys.METHOD, "xml");
props.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
props.put(OutputKeys.INDENT, "yes");
this.startSerializedXMLRecording(props);

I would also remove this property in the implementation of XMLUtils
serializeNodeToXML(Node node) as it should not transcode. This shouldn't effect
current usage.

Just tested it, and works fine for me. What do you think?

Reply via email to