You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2007/06/09 14:45:03 UTC

svn commit: r545738 - /xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp

Author: cargilld
Date: Sat Jun  9 05:45:02 2007
New Revision: 545738

URL: http://svn.apache.org/viewvc?view=rev&rev=545738
Log:
Supress DTD error message for attribute refering to unknown entity when attribute not used.  Patch from John Kim.

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp?view=diff&rev=545738&r1=545737&r2=545738
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/validators/DTD/DTDValidator.cpp Sat Jun  9 05:45:02 2007
@@ -327,12 +327,14 @@
                 }
             }
         }
-         else if ((type == XMLAttDef::Entity) || (type == XMLAttDef::Entities))
+         else if (!preValidation && ((type == XMLAttDef::Entity) || (type == XMLAttDef::Entities)))
         {
             //
             //  If its refering to a entity, then look up the name in the
             //  general entity pool. If not there, then its an error. If its
             //  not an external unparsed entity, then its an error.
+            //
+            //  In case of pre-validation, the above errors should be ignored.
             //
             const XMLEntityDecl* decl = fDTDGrammar->getEntityDecl(pszTmpVal);
             if (decl)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org