dbertoni    2003/01/23 18:29:45

  Modified:    c/src/XalanExe XalanExe.cpp
  Log:
  Fixed glitch.
  
  Revision  Changes    Path
  1.19      +14 -4     xml-xalan/c/src/XalanExe/XalanExe.cpp
  
  Index: XalanExe.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanExe/XalanExe.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XalanExe.cpp      12 Dec 2002 01:49:35 -0000      1.18
  +++ XalanExe.cpp      24 Jan 2003 02:29:45 -0000      1.19
  @@ -450,10 +450,19 @@
                theTarget.setByteStream(&cout);
        }
   
  -     return theTransformer.transform(
  +     if (theParams.m_useStylesheetPI == true)
  +     {
  +             return theTransformer.transform(
  +                                     theSource,
  +                                     theTarget);
  +     }
  +     else
  +     {
  +             return theTransformer.transform(
                                theSource,
                                theStylesheetSource,
                                theTarget);
  +     }
   }
   
   
  @@ -464,10 +473,11 @@
                        const Params&                   theParams,
                        const XSLTInputSource&  theSource)
   {
  -     assert(theParams.m_xslFileName != 0);
  +     assert(theParams.m_useStylesheetPI == true || theParams.m_xslFileName != 0);
   
  -     if (theParams.m_xslFileName[0] == '-' &&
  -             theParams.m_xslFileName[1] == '\0')
  +     if (theParams.m_useStylesheetPI == true ||
  +         (theParams.m_xslFileName[0] == '-' &&
  +          theParams.m_xslFileName[1] == '\0'))
        {
                return transform(
                                theTransformer,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to