Hi Miro,

There's no documentation for using XalanTransformerProblemListener, since
it was designed to be used internally by XalanTransformer.  Someone else
recently asked the question if passing in 0 for both constructor arguments
would work, and my response was that I think so, but I'm not sure.

Since your ProblemListener instance does nothing, there's no reason why it
cannot be shared between multiple threads.

Dave



                                                                                
                                                               
                      [EMAIL PROTECTED]                                         
                                                                
                      .net                     To:      
[email protected]                                                    
       
                                               cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                   
                      03/12/2003 08:17         Subject: Re: Errors and Warnings 
on stdout                                                      
                      AM                                                        
                                                               
                                                                                
                                                               




Hello,

I have some questions regarding XalanTransformerProblemListener. This is a
bit of my source code to get rid of everything going to stderr:

class IX_XalanTransformerProblemListener : public
XalanTransformerProblemListener {
public:
  IX_XalanTransformerProblemListener() : XalanTransformerProblemListener(0,
0) {} ;
}

pT = new XalanTransformer() ;
pPL = new IX_XalanTransformerProblemListener();
pT->setProblemListener(pPL);
...
delete pPL; pPL = NULL;

I check the return value from XalanTranformer::transform(), so I am aware
of problems while transforming. I checked that it works, but to be sure:

Q1: Is there an example how to use the XalanTransformerProblemListener
class?
Q2: Is the code OK?
Q3: Can I share one instance of ProblemListener between several
XalanTransformers running in different threads? I guess I can't.

Cheers, Miro.

Reply via email to