I have already a compiled the Template and he works with StreamSource ...

Jean-Jacques Borie
Directeur recherche et d�veloppement

Tekora, changez votre conception des sites web
http://www.tekora.com
17, place de la R�sistance - 92130 Issy-les-Moulineaux
T�l. : +33 1 55 00 10 03 - Fax : +33 1 55 00 10 10
Por: +33 660199524
[EMAIL PROTECTED]

Pour vous inscrire � la Newsletter Tekora :
http://www.tekora.com/tekora/fr/12_1.html



                                                                                       
                                                      
                    jjborie@tekor                                                      
                                                      
                    a.com                To:     [EMAIL PROTECTED]              
                                                      
                                         cc:                                           
                                                      
                    21/09/2001           Subject:     RE: Xerces DOM Objects & Xalan   
                                                      
                    19:30                                                              
                                                      
                    Please                                                             
                                                      
                    respond to                                                         
                                                      
                    xalan-dev                                                          
                                                      
                                                                                       
                                                      
                                                                                       
                                                      





I have an error 500 wich is hard to debug.

Sample of the code I try

        TXDocument docXML = new TXDocument();
        docXML.setVersion("1.0");
        docXML.setEncoding("UTF-8");
        Element root = docXML.createElement("ROOT");
        docXML.appendChild(root);
    Transformer transformer1 = templates.newTransformer();

    transformer1.setOutputProperty(OutputKeys.ENCODING, encoding);

    DOMSource domSource = new DOMSource((org.w3c.dom.Node)
docXML.getDocumentElement());

    StreamResult streamResultOut = new StreamResult(out);
    transformer1.transform(domSource,streamResultOut);

I passe directly the node to the DOMSource ...

Jean-Jacques Borie
Directeur recherche et d�veloppement

Tekora, changez votre conception des sites web
http://www.tekora.com
17, place de la R�sistance - 92130 Issy-les-Moulineaux
T�l. : +33 1 55 00 10 03 - Fax : +33 1 55 00 10 10
Por: +33 660199524
[EMAIL PROTECTED]

Pour vous inscrire � la Newsletter Tekora :
http://www.tekora.com/tekora/fr/12_1.html




                    Joseph_Kesselman

                    @lotus.com              To:
[EMAIL PROTECTED]

                                            cc:

                    21/09/2001 19:11        Subject:     RE: Xerces DOM
Objects & Xalan
                    Please respond

                    to xalan-dev








If you don't tell us what the error was, it's hard to diagnose.

We _should_ be able to handle the XML4J DOM, and in fact we should be able
to handle any correct Level 2 DOM implementation. Make sure you're running
the parser in namespace-aware mode.









Reply via email to