> Hi Dave, > > thank you for your answer! In the meantime I tried both versions: > XalanTranformer::setWarningStream() worked fine, but finally I will need a > ProblemListener. Therefore I derived a class from the > XalanTransformerProblemListener and reimplemented the problem() method â at > least I tried to do so. To get information from the input parameter I > searched for a while how to convert a XalanDOMString and a XalanDOMChar to a > std::string. > Now there is another question: > my application ends up in the catch block I enclosed the transform()-method > of the XalanTransformer in caused by an assignment from XalanDOMChar to > XalanDOMString (as I found out): > > XalanDOMString& dom_str_uri = dom_str_uri.assign(_uri);
This code is puzzling. Is dom_str_uri really a reference to itself? Or is this a typo? > > Where _uri is the input parameter from the problem() function of the derived > ProblemListener class. But I simply have no clue why it does so. Do I use > the wrong function? You should set your debugger to stop when an exception is thrown, but I suspect either your code is broken, as I mentioned above, or the _uri parameter is null, and you are not checking for that before you call XalanDOMString::assign(). Dave
