Thanks for the clarification. Checking the Extensions sample source, I see
it has been updated.
Following the revised example in 2.2.D13, , my extension now instantiates a
Document instead of using the context's document to create the result
nodes:

          Document doc = null;
          try {
               DocumentBuilderFactory dbf =
DocumentBuilderFactory.newInstance();
               DocumentBuilder db = dbf.newDocumentBuilder();
               doc = db.newDocument();
              if (doc == null) {
               System.err.println("null doc ...");
               return null;
              }
          } catch(ParserConfigurationException pce) {
               throw new org.apache.xml.utils.WrappedRuntimeException(pce);
          }



Thanks a many!
-chris



                                                                                
                
                    Joseph                                                      
                
                    Kesselman/CAM/L        To:     Christopher 
Giblin/Zurich/[EMAIL PROTECTED]          
                    [EMAIL PROTECTED]             cc:     [EMAIL PROTECTED]     
            
                                           Subject:     Re: newbie: 
DTMDOMException in xalan    
                    11/27/2001             Extension                            
                
                    12:31 AM                                                    
                
                                                                                
                
                                                                                
                




DTM supports only a read-only subset of the DOM APIs. createTextNode is not
among the supported functions. Use a different DOM implementation for your
synthesized node, or solve the problem another way.





Reply via email to