You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Stephan Marwedel <ma...@thales.de> on 2000/06/07 12:28:14 UTC

[XALAN-C] XSLTResultTarget question

I need the result of a XSL transformation as a DOM tree which can then
be processed further. How does one accomplish this? When I instantiate
an XSLTResultTarget object as follows, everything works fine:

TextFileOutputStream os("result.xml");
XercesDOMPrintWriter writer(os);
XSLTResultTarget     resultTarget(&writer);  

However, when I do it like this, I either get an exception or the
result is not correct.

DOM_Document resultdoc = DOM_DOMImplementation().createDocument(0,
"result",  DOM_DocumentType());
XSLTResultTarget resultTarget(resultdoc);

What's the correct way to do this?

My system: Linux, XercesC++/Xalan C++

Any hints appriciated.

TIA

Stephan

-- 
------------------------------------------------------
Stephan Marwedel, Object Technology Group      .~.
THALES Communication GmbH, Hamburg, Germany    /V\  
Email: marwedel@thales.de                    //   \\   
Web: http://www.thales.de                   /(     )\ 
                                              ^^-^^         
                                               Tux
------------------------------------------------------