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 18:10:54 UTC
cvs commit: xml-xalan/c/Tests/Threads ThreadTest.cpp
pauldick 01/02/02 09:10:53
Modified: c/Tests/Threads ThreadTest.cpp
Log:
Updated to run with new XalanSourceTreeDomSupport and other minor changes.
Revision Changes Path
1.4 +7 -11 xml-xalan/c/Tests/Threads/ThreadTest.cpp
Index: ThreadTest.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Threads/ThreadTest.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ThreadTest.cpp 2000/12/07 17:03:55 1.3
+++ ThreadTest.cpp 2001/02/02 17:10:49 1.4
@@ -9,11 +9,10 @@
#include <PlatformSupport/XalanFileOutputStream.hpp>
#include <PlatformSupport/XalanOutputStreamPrintWriter.hpp>
-#include <XercesParserLiaison/XercesDOMSupport.hpp>
-#include <XercesParserLiaison/XercesParserLiaison.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>
@@ -61,14 +60,14 @@
const DWORD theThreadID = GetCurrentThreadId();
// Create the support objects that are necessary for running the processor...
- XercesDOMSupport theDOMSupport;
- XercesParserLiaison theParserLiaison(theDOMSupport);
+ XalanSourceTreeDOMSupport theDOMSupport;
+ XalanSourceTreeParserLiaison theParserLiaison(theDOMSupport);
+ theDOMSupport.setParserLiaison(&theParserLiaison);
// The default is that documents are not thread-safe. Set this to
// true so they are.
- theParserLiaison.setThreadSafe(true);
+ //theParserLiaison.setThreadSafe(true);
- XPathSupportDefault theXPathSupport(theDOMSupport);
XSLTProcessorEnvSupportDefault theXSLTProcessorEnvSupport;
XObjectFactoryDefault theXObjectFactory;
XPathFactoryDefault theXPathFactory;
@@ -76,7 +75,6 @@
// Create a processor...and output start message.
XSLTEngineImpl theProcessor(
theParserLiaison,
- theXPathSupport,
theXSLTProcessorEnvSupport,
theDOMSupport,
theXObjectFactory,
@@ -91,7 +89,7 @@
StylesheetExecutionContextDefault ssExecutionContext(
theProcessor,
theXSLTProcessorEnvSupport,
- theXPathSupport,
+ theDOMSupport,
theXObjectFactory);
// Our input files. The assumption is that the executable will be run
@@ -198,7 +196,6 @@
// Create the necessary stuff of compile the stylesheet.
XercesDOMSupport ssDOMSupport;
XercesParserLiaison ssParserLiaison(ssDOMSupport);
- XPathSupportDefault ssXPathSupport(ssDOMSupport);
XSLTProcessorEnvSupportDefault ssXSLTProcessorEnvSupport;
XObjectFactoryDefault ssXObjectFactory;
XPathFactoryDefault ssXPathFactory;
@@ -206,7 +203,6 @@
// Create a processor to compile the stylesheet...
XSLTEngineImpl ssProcessor(
ssParserLiaison,
- ssXPathSupport,
ssXSLTProcessorEnvSupport,
ssDOMSupport,
ssXObjectFactory,