--- parser3/src/classes/xalan-patched/Attic/XalanTransformer2.cpp 2001/10/18 10:22:57 1.5 +++ parser3/src/classes/xalan-patched/Attic/XalanTransformer2.cpp 2001/10/26 12:21:29 1.7 @@ -7,7 +7,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: XalanTransformer2.cpp,v 1.5 2001/10/18 10:22:57 parser Exp $ + $Id: XalanTransformer2.cpp,v 1.7 2001/10/26 12:21:29 paf Exp $ based on: */ @@ -120,6 +120,9 @@ #include "XalanTransformer/XercesDOMParsedSource.hpp" +#include "XercesParserLiaison/XercesDOMSupport.hpp" +#include "XMLSupport/XMLParserLiaisonDefault.hpp" + XSLTInit* XalanTransformer2::s_xsltInit = 0; @@ -1140,13 +1143,6 @@ XalanTransformer2::transform2( theXSLTProcessorEnvSupport.setProcessor(&theProcessor); - // Create a problem listener and send output to a XalanDOMString. - //DOMStringPrintWriter thePrintWriter(theErrorMessage); - - //ProblemListenerDefault theProblemListener(&thePrintWriter); - - //theProcessor.setProblemListener(&theProblemListener); - // Since the result target is not const in our // internal intefaces, we'll pass in a local copy // of the one provided... @@ -1189,10 +1185,11 @@ XalanTransformer2::transform2( tempResultTarget, *m_stylesheetExecutionContext); } -/* + + void -XalanTransformer2::transformXerces( - const XalanDocument& theDocument, +XalanTransformer2::transform2( + XalanDocument& theDocument, const XalanCompiledStylesheet* theCompiledStylesheet, const XSLTResultTarget& theResultTarget) { @@ -1200,13 +1197,9 @@ XalanTransformer2::transformXerces( using std::for_each; #endif - // Create the helper object that is necessary for running the processor... - XalanAutoPtr theHelper(theParsedXML.createHelper()); - assert(theHelper.get() != 0); - - DOMSupport& theDOMSupport = theHelper->getDOMSupport(); + XercesDOMSupport theDOMSupport; - XMLParserLiaison& theParserLiaison = theHelper->getParserLiaison(); + XercesParserLiaison theParserLiaison(theDOMSupport); // Create some more support objects... XSLTProcessorEnvSupportDefault theXSLTProcessorEnvSupport; @@ -1270,9 +1263,9 @@ XalanTransformer2::transformXerces( // Do the transformation... theProcessor.process( - theParsedXML.getDocument(), + &theDocument, tempResultTarget, *m_stylesheetExecutionContext); } -*/ + #endif