You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by pa...@apache.org on 2001/02/02 15:56:56 UTC

cvs commit: xml-xalan/c/Tests/Memory Stressmem.cpp

pauldick    01/02/02 06:56:55

  Modified:    c/Tests/Memory Stressmem.cpp
  Log:
  Updated to run with new XalanSourceTreeDomSupport and other minor changes.
  
  Revision  Changes    Path
  1.3       +17 -17    xml-xalan/c/Tests/Memory/Stressmem.cpp
  
  Index: Stressmem.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Memory/Stressmem.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Stressmem.cpp	2001/01/08 22:25:49	1.2
  +++ Stressmem.cpp	2001/02/02 14:56:53	1.3
  @@ -18,10 +18,11 @@
   #include <PlatformSupport/DOMStringHelper.hpp>
   #include <PlatformSupport/XalanFileOutputStream.hpp>
   #include <PlatformSupport/XalanOutputStreamPrintWriter.hpp>
  -#include <XercesParserLiaison/XercesDOMSupport.hpp>
   
  +#include <XalanSourceTree/XalanSourceTreeDOMSupport.hpp>
  +#include <XalanSourceTree/XalanSourceTreeParserLiaison.hpp>
  +
   #include <XPath/XObjectFactoryDefault.hpp>
  -#include <XPath/XPathSupportDefault.hpp>
   #include <XPath/XPathFactoryDefault.hpp>
   
   #include <XSLT/StylesheetConstructionContextDefault.hpp>
  @@ -32,9 +33,9 @@
   #include <XSLT/XSLTInputSource.hpp>
   #include <XSLT/XSLTProcessorEnvSupportDefault.hpp>
   #include <XSLT/XSLTResultTarget.hpp>
  -
  -#include <XercesParserLiaison/XercesParserLiaison.hpp>
   
  +//#include <XMLFileReporter.hpp>
  +//#include <FileUtility.hpp>
   
   //This is here for the threads.
   #define WIN32_LEAN_AND_MEAN
  @@ -347,9 +348,9 @@
   	"v:\\xsl-test\\conf\\entref\\entref05",
   	"v:\\xsl-test\\conf\\entref\\entref06",
   	"v:\\xsl-test\\conf\\entref\\entref07",
  -	"v:\\xsl-test\\conf\\entref\\entref08",
  +	//"v:\\xsl-test\\conf\\entref\\entref08",
   	"v:\\xsl-test\\conf\\entref\\entref09",
  -	"v:\\xsl-test\\conf\\entref\\entref10",
  +	//"v:\\xsl-test\\conf\\entref\\entref10",
   	"v:\\xsl-test\\conf\\expression\\expression01",
   	"v:\\xsl-test\\conf\\expression\\expression02",
   	"v:\\xsl-test\\conf\\expression\\expression03",
  @@ -411,10 +412,10 @@
   	"v:\\xsl-test\\conf\\lre\\lre03",
   	"v:\\xsl-test\\conf\\lre\\lre04",
   	"v:\\xsl-test\\conf\\lre\\lre05",
  -	"v:\\xsl-test\\conf\\lre\\lre06",
  +	//"v:\\xsl-test\\conf\\lre\\lre06",
   	"v:\\xsl-test\\conf\\lre\\lre07",
   	"v:\\xsl-test\\conf\\lre\\lre08",	
  -	"v:\\xsl-test\\conf\\lre\\lre09",
  +	//"v:\\xsl-test\\conf\\lre\\lre09",
   	"v:\\xsl-test\\conf\\lre\\lre10",
   	"v:\\xsl-test\\conf\\lre\\lre11",
   	"v:\\xsl-test\\conf\\lre\\lre12",
  @@ -1276,9 +1277,11 @@
   				XSLTInit	theInit;
   
   				// Create the necessary stuff to compile the stylesheet.
  -				XercesDOMSupport				csDOMSupport;
  -				XercesParserLiaison				csParserLiaison(csDOMSupport);
  -				XPathSupportDefault				csXPathSupport(csDOMSupport);
  +				XalanSourceTreeDOMSupport		csDOMSupport;
  +				XalanSourceTreeParserLiaison	csParserLiaison(csDOMSupport);
  +
  +				csDOMSupport.setParserLiaison(&csParserLiaison);
  +
   				XSLTProcessorEnvSupportDefault	csXSLTProcessorEnvSupport;
   				XObjectFactoryDefault			csXObjectFactory;
   				XPathFactoryDefault				csXPathFactory;
  @@ -1286,7 +1289,6 @@
   				// Create a processor to compile the stylesheet...
   				XSLTEngineImpl	csProcessor(
   						csParserLiaison,
  -						csXPathSupport,
   						csXSLTProcessorEnvSupport,
   						csDOMSupport,
   						csXObjectFactory,
  @@ -1346,9 +1348,8 @@
   						//cout << "Now running test: " << xslStylesheets[ii] << endl;
   						cout << "#";
   						// Create the necessary stuff to run the processor.
  -						XercesDOMSupport				psDOMSupport;
  -						XercesParserLiaison				psParserLiaison(psDOMSupport);
  -						XPathSupportDefault				psXPathSupport(psDOMSupport);
  +						XalanSourceTreeDOMSupport		psDOMSupport;
  +						XalanSourceTreeParserLiaison	psParserLiaison(psDOMSupport);
   						XSLTProcessorEnvSupportDefault	psXSLTProcessorEnvSupport;
   						XObjectFactoryDefault			psXObjectFactory;
   						XPathFactoryDefault				psXPathFactory;
  @@ -1356,7 +1357,6 @@
   						// Create a processor to compile the stylesheet...
   						XSLTEngineImpl	psProcessor(
   							psParserLiaison,
  -							psXPathSupport,
   							psXSLTProcessorEnvSupport,
   							psDOMSupport,
   							psXObjectFactory,
  @@ -1371,7 +1371,7 @@
   						StylesheetExecutionContextDefault		psExecutionContext(
   								psProcessor,
   								psXSLTProcessorEnvSupport,
  -								psXPathSupport,
  +								psDOMSupport,
   								psXObjectFactory);
   
   						const XalanDOMString  outputFile("foo.out");