dbertoni    2002/09/09 22:50:33

  Modified:    c/src/XSLT ElemMessage.cpp
  Log:
  Fixed bug with ChildrenToString().  Bugzilla 12471.
  
  Revision  Changes    Path
  1.16      +12 -6     xml-xalan/c/src/XSLT/ElemMessage.cpp
  
  Index: ElemMessage.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemMessage.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ElemMessage.cpp   12 Mar 2002 05:40:00 -0000      1.15
  +++ ElemMessage.cpp   10 Sep 2002 05:50:33 -0000      1.16
  @@ -129,20 +129,26 @@
   
   
   void
  -ElemMessage::execute(StylesheetExecutionContext&             executionContext) const
  +ElemMessage::execute(StylesheetExecutionContext&     executionContext) const
   {
        ElemTemplateElement::execute(executionContext);
   
        StylesheetExecutionContext::GetAndReleaseCachedString   
theResult(executionContext);
   
  -    executionContext.message(
  -             childrenToString(executionContext,theResult.get()),
  -             executionContext.getCurrentNode(),
  -             getLocator());
  +     const XalanDOMString&   theString =
  +             childrenToString(
  +                     executionContext,
  +                     theResult.get());
  +
  +             
  +     executionContext.message(
  +                     theString,
  +                     executionContext.getCurrentNode(),
  +                     getLocator());
   
        if (m_terminate == true)
        {
  -             throw ElemMessageTerminateException(theResult.get());
  +             throw ElemMessageTerminateException(theString);
        }
   }
   
  
  
  

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

Reply via email to