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 2005/12/28 17:47:45 UTC
svn commit: r359559 -
/xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
Author: cargilld
Date: Wed Dec 28 08:47:44 2005
New Revision: 359559
URL: http://svn.apache.org/viewcvs?rev=359559&view=rev
Log:
Schema fixes for union of union.
Modified:
xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
Modified: xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp?rev=359559&r1=359558&r2=359559&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp (original)
+++ xerces/c/trunk/src/xercesc/validators/datatype/UnionDatatypeValidator.hpp Wed Dec 28 08:47:44 2005
@@ -298,8 +298,8 @@
unsigned int memberSize = fMemberTypeValidators->size();
for (unsigned int i=0; i < memberSize; i++) {
-
- if (fMemberTypeValidators->elementAt(i)->getType() == DatatypeValidator::Union)
+ if ((fMemberTypeValidators->elementAt(i)->getType() == DatatypeValidator::Union) &&
+ (fMemberTypeValidators->elementAt(i) == toCheck))
return false;
if (fMemberTypeValidators->elementAt(i)->isSubstitutableBy(toCheck)) {
return true;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org