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 15:03:24 UTC
svn commit: r545740 -
/xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp
Author: cargilld
Date: Sat Jun 9 06:03:23 2007
New Revision: 545740
URL: http://svn.apache.org/viewvc?view=rev&rev=545740
Log:
Supress DTD error message for attribute refering to unknown entity when attribute not used. Patch from John Kim.
Modified:
xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp
Modified: xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp?view=diff&rev=545740&r1=545739&r2=545740
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/DTD/DTDValidator.cpp Sat Jun 9 06:03:23 2007
@@ -328,12 +328,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