auriemma    01/02/02 15:08:15

  Modified:    c/src/TestXSLT process.cpp
  Log:
  Added call to set execution context.
  
  Revision  Changes    Path
  1.55      +16 -7     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.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- process.cpp       2001/01/25 17:12:27     1.54
  +++ process.cpp       2001/02/02 23:08:14     1.55
  @@ -910,6 +910,22 @@
   
        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);
  @@ -949,13 +965,6 @@
   
        // Do the transformation...
        XSLTInputSource         theInputSource(c_str(params.inFileName));
  -
  -     StylesheetExecutionContextDefault       theExecutionContext(processor,
  -                     theXSLProcessorSupport,
  -                     theDOMSupport,
  -                     theXObjectFactory);
  -
  -     theExecutionContext.setUseDOMResultTreeFactory(params.useDOMForRTFs);
   
   #if defined(XALAN_USE_ICU)
        ICUBridgeCollationCompareFunctor        theICUFunctor;
  
  
  

Reply via email to