dbertoni    00/10/03 11:16:50

  Modified:    c/src/XSLT ElemElement.cpp
  Log:
  Corrected error message and variable names to reduce confusion.
  
  Revision  Changes    Path
  1.10      +5 -6      xml-xalan/c/src/XSLT/ElemElement.cpp
  
  Index: ElemElement.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemElement.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ElemElement.cpp   2000/09/05 02:24:52     1.9
  +++ ElemElement.cpp   2000/10/03 18:16:50     1.10
  @@ -171,7 +171,7 @@
   
        m_nameAVT->evaluate(elemName, sourceNode, *this, executionContext);
   
  -     bool                            isIllegalAttribute = false;
  +     bool                            isIllegalElement = false;
   
        unsigned int            len = length(elemName);
   
  @@ -186,18 +186,17 @@
                if (indexOfNSSep + 1 == len ||
                        isValidNCName(substring(elemName, indexOfNSSep + 1)) == 
false)
                {
  -                     isIllegalAttribute = true;
  +                     isIllegalElement = true;
                }
        }
        else if(len == 0 || isValidNCName(elemName) == false)
        {
  -             isIllegalAttribute = true;
  +             isIllegalElement = true;
        }
   
  -     if (isIllegalAttribute == true)
  +     if (isIllegalElement == true)
        {
  -             XalanDOMString  msg("Illegal attribute name: ");
  -             msg += elemName;
  +             XalanDOMString  msg("Illegal element name!");
   
                executionContext.warn(msg, sourceNode, this);
   
  
  
  

Reply via email to