dleslie     00/05/05 13:46:45

  Modified:    c/samples/CompileStylesheet CompileStylesheet.cpp
  Log:
  set the processor Stylesheet property, and reset processor and
  execution context.
  
  Revision  Changes    Path
  1.3       +8 -0      
xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp
  
  Index: CompileStylesheet.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/samples/CompileStylesheet/CompileStylesheet.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CompileStylesheet.cpp     2000/05/05 19:03:49     1.2
  +++ CompileStylesheet.cpp     2000/05/05 20:46:45     1.3
  @@ -122,6 +122,8 @@
                                                        theConstructionContext);
                        assert(theStylesheetRoot != 0);
   
  +      theProcessor.setStylesheet(theStylesheetRoot);
  +
                        for (unsigned int i = 0; i < 10; i++)
                        {
           // Generate the input and output file names.
  @@ -144,6 +146,12 @@
                theResultTarget,
                theConstructionContext,
                theExecutionContext);
  +
  +        // Reset the processor and the execution context
  +        // so we can perform the next transformation.
  +        theProcessor.reset();
  +        theProcessor.setStylesheet(theStylesheetRoot);
  +        theExecutionContext.reset();
                        }
                }
                catch(...)
  
  
  

Reply via email to