dbertoni    00/12/01 07:41:51

  Modified:    c/samples/StreamTransform StreamTransform.cpp
  Log:
  Set system ID on the input sources.
  
  Revision  Changes    Path
  1.2       +7 -0      xml-xalan/c/samples/StreamTransform/StreamTransform.cpp
  
  Index: StreamTransform.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/StreamTransform/StreamTransform.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StreamTransform.cpp       2000/11/29 21:00:31     1.1
  +++ StreamTransform.cpp       2000/12/01 15:41:50     1.2
  @@ -126,6 +126,13 @@
                                XSLTInputSource         
theInputSource(&theInputDocumentStream);
                                XSLTInputSource         
theStylesheetSource(&theStylesheetStream);
   
  +                             // A fake system ID for the input sources...
  +                             const XalanDOMString    theSystemID("Memory 
buffer");
  +
  +                             // Set the system IDs...
  +                             theInputSource.setSystemId(c_wstr(theSystemID));
  +                             
theStylesheetSource.setSystemId(c_wstr(theSystemID));
  +
                                // Our output target.  By default, we'll use an 
ostrstream that will allocate
                                // memory dynamically, although we could also 
use a static buffer since we 
                                // know the size of the output.
  
  
  

Reply via email to