You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/04/03 20:48:59 UTC

cvs commit: xml-xalan/c/src/TestXSLT process.cpp

dbertoni    01/04/03 11:48:57

  Modified:    c/src/TestXSLT process.cpp
  Log:
  Re-arranged object creation order to fix call of reset() on a dead object.
  
  Revision  Changes    Path
  1.57      +16 -16    xml-xalan/c/src/TestXSLT/process.cpp
  
  Index: process.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/TestXSLT/process.cpp,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- process.cpp	2001/03/02 21:01:13	1.56
  +++ process.cpp	2001/04/03 18:48:54	1.57
  @@ -925,22 +925,6 @@
   
   	const StylesheetRoot*	stylesheet = 0;
   
  -	StylesheetExecutionContextDefault	theExecutionContext(processor,
  -			theXSLProcessorSupport,
  -			theDOMSupport,
  -			theXObjectFactory);
  -
  -	if (params.useDOM == false)
  -	{
  -		theXalanSourceTreeParserLiaison.setExecutionContext(theExecutionContext);
  -	}
  -	else
  -	{
  -		theXercesParserLiaison.setExecutionContext(theExecutionContext);
  -	}
  -
  -	theExecutionContext.setUseDOMResultTreeFactory(params.useDOMForRTFs);
  -
   	if (!isEmpty(xslFileName))
   	{
   		stylesheet = processor.processStylesheet(xslFileName, theConstructionContext);
  @@ -982,11 +966,27 @@
   	// Do the transformation...
   	XSLTInputSource		theInputSource(c_str(params.inFileName));
   
  +	StylesheetExecutionContextDefault	theExecutionContext(processor,
  +			theXSLProcessorSupport,
  +			theDOMSupport,
  +			theXObjectFactory);
  +
   #if defined(XALAN_USE_ICU)
   	ICUBridgeCollationCompareFunctor	theICUFunctor;
   
   	theExecutionContext.installCollationCompareFunctor(&theICUFunctor);
   #endif
  +
  +	if (params.useDOM == false)
  +	{
  +		theXalanSourceTreeParserLiaison.setExecutionContext(theExecutionContext);
  +	}
  +	else
  +	{
  +		theXercesParserLiaison.setExecutionContext(theExecutionContext);
  +	}
  +
  +	theExecutionContext.setUseDOMResultTreeFactory(params.useDOMForRTFs);
   
   	if (stylesheet == 0)
   	{
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org