tng         2002/11/07 13:58:56

  Modified:    c/src/xercesc/validators/DTD DTDValidator.cpp
                        DTDValidator.hpp
  Log:
  Pass elemDecl to XMLValidator::validateAttrValue so that we can include element name 
in error message.
  
  Revision  Changes    Path
  1.7       +4 -2      xml-xerces/c/src/xercesc/validators/DTD/DTDValidator.cpp
  
  Index: DTDValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/DTD/DTDValidator.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DTDValidator.cpp  4 Nov 2002 14:50:40 -0000       1.6
  +++ DTDValidator.cpp  7 Nov 2002 21:58:56 -0000       1.7
  @@ -202,7 +202,8 @@
   void
   DTDValidator::validateAttrValue(const   XMLAttDef*      attDef
                                   , const XMLCh* const    attrValue
  -                                , bool                  preValidation)
  +                                , bool                  preValidation
  +                                , const XMLElementDecl* elemDecl)
   {
       //
       //  Get quick refs to lost of of the stuff in the passed objects in
  @@ -586,6 +587,7 @@
                       &curAttDef
                       , curAttDef.getValue()
                       , true
  +                    , &curElem
                   );
               }
           }
  
  
  
  1.6       +4 -0      xml-xerces/c/src/xercesc/validators/DTD/DTDValidator.hpp
  
  Index: DTDValidator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/DTD/DTDValidator.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DTDValidator.hpp  4 Nov 2002 14:50:40 -0000       1.5
  +++ DTDValidator.hpp  7 Nov 2002 21:58:56 -0000       1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2002/11/07 21:58:56  tng
  + * Pass elemDecl to XMLValidator::validateAttrValue so that we can include element 
name in error message.
  + *
    * Revision 1.5  2002/11/04 14:50:40  tng
    * C++ Namespace Support.
    *
  @@ -182,6 +185,7 @@
           const   XMLAttDef*                  attDef
           , const XMLCh* const                attrValue
           , bool                              preValidation = false
  +        , const XMLElementDecl*             elemDecl = 0
       );
       virtual void validateElement
       (
  
  
  

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

Reply via email to