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=15569>. 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=15569 XalanDocument doesn´t work as ParsedSource / stringstream doesn´t work as input after it has been used as input [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2002-12-20 16:44 ------- If you want to use a XalanDocument instance as input to XalanTransformer, please see the ParsedSourceWrappers sample application for more information on how to do it. XalanTransformer does not accept a XalanDocument instance as input for a transformation because it does not know what implementation is being used. You should never attempt to transform an empty document, since Xalan expects a well-formed document as input, and an empty document is not well-formed. A few more comments: theWalker.traverse(pTwo); //if you use startDocument and endDocument you get 2 headers!!!! Yes, since you're passing in a XalanDocument, why would you call startDocument () and endDocument() on the FormatterListener instance? You would only do that if you were passing in part of a document. If you want to re-use a std::stringstream instance, you must set the current position of the stream back to the beginning: stream2.seekg(0); This has nothing to do with Xalan. Please read the documentation of your compiler's run-time library for more information. In the future, consider posting questions on the user list, not in a bug report, as you will get better responses. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]